Note that there are some explanatory texts on larger screens.

plurals
  1. POCustom source for Windows 7 Start Menu Search
    text
    copied!<p>I recently came across an article about Windows 7's new <a href="http://blogs.msdn.com/b/jimoneil/archive/2009/10/25/7-on-7-federated-search.aspx" rel="nofollow noreferrer">Federated Search and Search Connectors</a>. Basically, you provide users a small XML file (.osdx; an OpenSearch XML file) and they can then use Explorer to search whatever you've got. These Search Connectors actually really easy to implement &ndash; Explorer calls your URL with a query and you just return the results as RSS.</p> <p>Great. I'm currently working on a web app where this kind of functionality might be a nice little extra feature to provide to my users. So I installed the sample .osdx and tried it out. It works pretty much as advertised:</p> <p><a href="http://blogs.msdn.com/blogfiles/jimoneil/WindowsLiveWriter/7ON7FederatedSearch_14072/image_thumb_15.png" rel="nofollow noreferrer">http://blogs.msdn.com/blogfiles/jimoneil/WindowsLiveWriter/7ON7FederatedSearch_14072/image_thumb_15.png</a></p> <p>That's cool, but I want my search results to be available from the Start menu. The point (in my mind) would be to make items within my web app easily, quickly, and directly accessible when the app itself isn't already open. If I have to open an Explorer window, click on my Search Connector, and then search, what's the difference from just opening a browser and doing the search in the web app?</p> <p>Here's what I've tried:</p> <ul> <li>After the .osdx is installed, the Connector is saved as <code>%UserProfile%\Searches\name.searchConnector-ms</code>. Other items in this folder include Outlook's Connector. Looking at that file, there's a very promising node named <a href="http://msdn.microsoft.com/en-us/library/dd742977(v=VS.85).aspx" rel="nofollow noreferrer"><code>&lt;includeInStartMenuScope&gt;</code></a>. I added this node with a value of <code>true</code> to the Channel 9 Connector, but no luck. (I even tried a reboot.)</li> <li>I came across a <a href="https://stackoverflow.com/questions/1375742/custom-windows-7-start-menu-search-provider">year-old question that asks just about the same thing</a>. The accepted answer directs us to the Windows API Code Pack, but that only provides classes for <em>consuming</em> Windows Search, not implementing a Search Provider.</li> <li><a href="http://www.hanselman.com/blog/AddingCustomSearchProvidersToWindows7PlusAdvancedSearchTricks.aspx" rel="nofollow noreferrer">The registry trick from Scott Hanselman</a>. However, this (a) only pins a link to run the search rather than including results inline, and (b) doesn't work for me since I (nor can I expect my users) to have Windows 7 Ultimate.</li> </ul> <p>So, how do I supply items to the Start menu's instant search? Ideally, I'd like to just configure the Search Connector's results to be included, but I'm not opposed to wiring up something in C# that would be installed on the client computer.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload