[This documentation is preliminary and is subject to change.]
Describes Windows 7 support for search federation to remote data stores using OpenSearch technologies that enable users to access and interact with their remote data from within Microsoft Windows Explorer.
Following the best practices described here you can build a Web-based data store that can be searched using Windows federated search, and enable rich integration of your remote data sources with Windows Explorer without having to write or deploy any Windows client-side code.
This topic contains the following sections:
What is Federated Search?
Windows 7 supports the connection of external sources to the Windows Client through the OpenSearch
protocol. This enables users to search a remote data store and view results from within Windows Explorer. The OpenSearch v1.1 standard defines simple file formats that can be used to describe how a client should query the Web service for the data store and how the service should return results to be rendered by the client. Windows federated search connects to Web services that receives OpenSearch queries, and returns results in either the RSS or Atom XML format.
.png)
How Federated Search Works
Communication between Windows Explorer and your OpenSearch Web service is performed at the Windows Data Layer. Through Windows Store Providers the Windows Data Layer can communicate with different types of data stores. Each provider specializes in communicating with data stores that support a particular protocol and have specific capabilities. The OpenSearch provider communicates with data stores accompanied by a Web service that supports the OpenSearch standard.
| Task | Requirement | See |
|---|
Enable your data store to be searched by Windows Explorer | Build an OpenSearch compatible Web service Create an OpenSearch Description (.osdx) file | Connecting Your Web Service in Windows Federated Search Enabling Your Data Store in Windows Federated Search |
Enumerate search results in Windows Explorer in response to a query | Implement a Web service that accepts a query string, and returns RSS or Atom formatted results | Connecting Your Web Service in Windows Federated Search |
Allow users to add your data store to their Windows Explorer | Create an .osdx file, and supply it to your users | Enabling Your Data Store in Windows Federated Search |
Display your items as file-like items in Windows Explorer | Return a URL to the file or content stream using enclosure or media:content elements Supply a file extension or a MIME type that the client machine recognizes | Enabling Your Data Store in Windows Federated Search |
Display custom properties in Windows Explorer, beyond what is defined in RSS or Atom standards | Provide additional metadata using another XML namespace in your RSS/Atom output Add a property map to your .osdx file | Creating an OpenSearch Description File in Windows Federated Search |
Customize the properties that are displayed for your items in Windows Explorer | Add proplist mappings to your .osdx file | Creating an OpenSearch Description File in Windows Federated Search |
Display a custom Web page view of your items in the preview pane | Return distinct link and enclosure values Map a URL value to the System.WebPreviewUrl Windows Shell property | Creating an OpenSearch Description File in Windows Federated Search |
Display a command bar button in Windows Explorer, that rolls the query over to your Web site | Provide a Url format="text/html" template in the .osdx file | Creating an OpenSearch Description File in Windows Federated Search |
Supply an .osdx file to your users | Copy the .osdx file locally, and expose it to the user via a shortcut | Deploying Search Connectors in Windows Federated Search |
Steps for Building Federated Search
To build federated search, perform the following steps:
- Connect a Web service between your data store and Windows federated search.
- Enable the data store to be searched from Windows Explorer via OpenSearch with RSS or Atom output.
- Create an OpenSearch Description (.osdx) file that describes how to connect to the Web service, and how to map any custom elements in your RSS or Atom XML.
- Deploy the search connectors to Windows client machines with an .osdx file.
.png)
Best Practices
Tips and best practices for working with OpenSearch in Windows 7 are as follows:
Additional Resources
- For a demonstration of how to create an OpenSearch Web service for a SQL database, see the Windows 7: Empower Users to Find, Visualize and Organize their Data with Libraries and the Explorer
video presentation given at PDC (October 2008). - For information on Windows system-defined properties, see System-Defined Properties for Custom File Formats.
- For information on Shell system properties, see System Properties.
- SharePoint Search Server 2008 and MOSS 2007 SP2 also support federated search of remote servers using OpenSearch. For more information about federated search and Search Server 2008 deployment with Office SharePoint Server 2007, see Welcome to Microsoft Search Server 2008.
- See the Microsoft Download Center Web site for the following downloadable resources:
- Windows 7 Federated Search Provider Implementer's Guide
- Search Server 2008 Sample: Federated Search Connector Sample
- For more information about the OpenSearch standard, see the OpenSearch Web site.
Related Topics