Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 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 Microsoft Q&A.
- To download the Search SDK Code Samples:
- For Windows 7: Windows Search Samples on GitHub
- To download the Windows SDK:
- For Windows 7: Windows SDK for Windows 7 and .NET Framework
- For Windows Vista: Windows SDK for Windows Vista and .NET Framework