Share via


ISearchRoot::set_UseNotificationsOnly Method

Sets a value that indicates whether this search root should be indexed only by notification and not crawled.

Syntax

HRESULT set_UseNotificationsOnly(      
    BOOL fUseNotificationsOnly
);

Parameters

  • fUseNotificationsOnly
    [in] TRUE if this search root should be indexed only by notification; otherwise, FALSE.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

For search root URLs in a custom data store or on a remote system, it can be useful to limit the search engine to indexing the URLs only if the store or system has sent notifications that something has changed. This might help to reduce traffic in the store or across the network by avoiding the incremental crawls when the store is unchanged.

The CrawlScopeCommandLine code sample, available on Code Gallery and the Windows 7 SDK, demonstrates how to define command line options for Crawl Scope Manager (CSM) indexing operations.