Using the Search Manager
The ISearchManager interface provides methods that make changes across catalogs. Changes made at the ISearchManager level apply globally to all catalogs used by the indexer, while changes made at the ISearchCatalogManager level apply to specific catalogs. However, currently, Windows Search uses only one catalog, SystemIndex. You can use the Search Manager to do the following:
- Get an instance of the Catalog Manager for the search catalog.
- Get version information about the Windows Search engine.
The following methods of the ISearchManager interface can help you manage your search catalog(s):
Method | Description |
---|---|
GetCatalog | Gets a catalog by name and returns an instance of ISearchCatalogManager for that catalog. This enables you to manage an individual search catalog. |
GetIndexerVersion | Returns the version of the indexer in two integers: major version and minor version. For example, the major version number for Windows 10 Search is "10" and the minor version number is "0". For Windows Vista Search and Windows Search 3.0 on Windows XP the major version number is "3" and the minor version number is "0". |
GetIndexerVersionStr | Returns the complete version number of the indexer as a string: for example, "10.0.18309.1000". For Windows 10 this will typically match the OS version number. For Windows XP, Vista, and 7 it will be different. |
For more information about these methods, see the ISearchManager documentation.
The following ISearchManager methods are reserved for future use. They are, however, implemented and do not affect the indexer or catalog, as there is only one catalog for Windows Search at this time.
- get_BypassList
- get_LocalBypass
- get_PortNumber
- get_ProxyName
- get_UseProxy
- get_UserAgent
- put_UserAgent
- SetProxy
GetParameter and SetParameter are also reserved for future use but are not implemented.