Compartir a través de


Using the Search Manager

The ISearchManager interface is designed to provide methods that affect 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 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 and minor. For example, the major version number for Windows Vista Search and Windows Search 3.0 on Windows XP is "3" and the minor version number is "0".
GetIndexerVersionStr Returns the complete version of the Indexer as a string, e.g., 03.00.5824.280.

For more information on these methods, refer to the ISearchManager documentation.

The following 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 reserved for future use and are not implemented.