I have been tinkering with using .OSDX files to query SharePoint 2010 to obtain search results lately and wanted to share the template that I have come up with that allows me to do that.

For those not familiar, it is possible to search a SharePoint 2010 web site from your local Windows 7 installation without having to actually go to the web site.  You simply search from your built in search bar in Windows 7.

I have noticed that there seem to be a lot of people having issues after upgrading from SharePoint 2007 to SharePoint 2010 and now they cannot seem to get their federated searches to run correctly.

Below is the template that I use, which is just a slightly modified version from the one I was using previously.  This template utilizes the RSS part of the web site for queries as you can probably tell from the URL path.  Your mileage may vary, but if nothing else it will get you pointed in the right direction:

<?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/">
<Description>Search the website_name</Description>
<Url type="application/rss+xml" template="https://yourcompany.com/SearchCenter/_layouts/srchrss.aspx?k={searchTerms}&amp;start={startIndex}&amp;s=Global"/>
<Url type="text/html" template="https://yourcompany.com/SearchCenter/_layouts/srchrss.aspx?k={searchTerms}&amp;s=Global"/>
<ms-ose:property name="TreatLinkAsEnclosure">-1</ms-ose:property>
<ms-ose:ResultsProcessing format="application/rss+xml">


2 comments so far

Add Your Comment
  1. So how do you come from this xml to an osdx file?

  2. I’d like to know this also!