Querying the Index Programmatically
There are several ways to use Windows Search to query the index.
This section provides the conceptual framework for querying the index programmatically:
- Using SQL and AQS Approaches to Query the Index
- Querying the Index with ISearchQueryHelper
- Querying the Index with the search-ms Protocol
- Querying the Index with Windows Search SQL Syntax
- Using Advanced Query Syntax Programmatically
Note Legacy Microsoft Windows Desktop Search (WDS) 2x compatibility: On computers running Windows XP and later, ISearchDesktop is deprecated. Instead, developers should use ISearchQueryHelper to get a connection string and to parse the user's query into Structured Query Language (SQL), and then query through Object Linking and Embedding Database (OLE DB).
- For information on OLE DB, see OLE DB Programming Overview. For information on the .NET Framework Data Provider for OLE DB, see the System.Data.OleDb Namespace.
- For additional background on using of properties in querying, see the following topics:
- For information on how to create and modify search folders, see ISearchFolderItemFactory Interface.
- For community-supported question and discussion message boards on Search technologies, see MSDN Forum: Windows Desktop Search Development.
- To download the Search SDK Code Samples:
- To download the Windows SDK:
- Windows Search Development Guide
- Managing the Index
- Extending the Windows Search Index
- Extending Language Resources