Resource Page DescriptionThe sample Windows Search applications are a set of eleven samples that demonstrate the use of search.
| Sample Name | Click on File to Download | Description |
| Crawl Scope Command Line | CrawlScopeCommandLine.zip | Shows how to define command line options for Crawl Scope Manager (CSM) indexing operations. |
| DSearch | DSearch.zip | Shows how to create a class for a static console application to query Windows Search using the Microsoft.Search.Interop assembly for ISearchQueryHelper. |
| IFilter Sample | IFilterSample.zip | Shows how to create an IFilter base class for implementing the IFilter interface. |
| Open Search | PriorityComparison.zip | Shows how to create a federated search service using the OpenSearch protocol, and an OpenSearch Descriptor (.osdx) file (a search connector). |
| Property Edit | PropertyEdit.zip | Shows how to convert the canonical property name to a PROPERTYKEY, set the value of the property store to that of the item, and write the data back to the file stream. |
| Reindex Matching Urls Sample | ReindexMatchingUrls.zip | Shows how to specify files for re-indexing, using either: URLs that match a file type, a mime type, or a specified WHERE clause. |
| Search Events Sample | SearchEvents.zip | Shows how to prioritize indexing events. |
| Structured Query Sample | StructuredQuerySample.zip | Shows how to use Structured Query API for parsing queries in Advanced Query Syntax (AQS). |
| Windows Search From Script Sample | WSFromScript.zip | Shows how to query Windows Search from a Microsoft Visual Basic script using Microsoft ActiveX Data Objects (ADO). |
| Windows Search Ole DB Sample | WSOleDB.zip | Shows how to use Active Template Library (ATL) OLE DB access to Windows Search applications. Also shows two additional methods for retrieving results from Windows Search. |
| Windows Search SQL Sample | WSSQL.zip | Shows how to communicate between Microsoft OLE DB and Windows Search through Structured Query Language (SQL). |
For more information, see Search Code Samples in the MSDN Library.
|