Federating Windows 7 Search with SharePoint

Ian over at WSSDemo has put up some sample code for federating your Windows 7 Search with SharePoint.  Given how quickly SharePoint is spreading throughout businesses I can see this being very useful indeed, especially as it includes file preview.

I’ve included the sample XML below, but please head over to Ian’s blog, there’s some good stuff over there.  You’ll have to excuse the dodgy code format – the blog doesn’t like displaying code!  Fortunately Ian’s hosting the .osdx file here.

<?xml version=”1.0″ encoding=”UTF-8″?>
<OpenSearchDescription xmlns=”http://a9.com/-/spec/opensearch/1.1/” xmlns:ms-ose=”http://schemas.microsoft.com/opensearchext/2009/”>

<ShortName>WSSDemo Site</ShortName>

<Description>Search the Ian Morrish Sharepoint Demo site.</Description>

<Url type=”application/rss+xml” template=”http://www.wssdemo.com/search/_layouts/srchrss.aspx?k={searchTerms}&amp;start={startIndex}&amp;s=WSSDemo%20Content”/>

<Url type=”text/html” template=”http://www.wssdemo.com/search/Pages/Results.aspx?k={searchTerms}&amp;s=WSSDemo%20Content”/>

<!– Win7 M3 syntax –>
<ms-ose:property name=”TreatLinkAsEnclosure”>-1</ms-ose:property>

<!– Win7 Beta syntax –>
<ms-ose:ResultsProcessing format=”application/rss+xml”>


The sample code point Windows 7 at WSSDemo.com, however you can change that to your own Sharepoint servers.  Head over to Ian’s blog for more info.

Leave a comment

Leave a Reply