ISearchCrawlScopeManager::AddHierarchicalScope Method
Adds a hierarchical scope to the search engine.
Syntax
HRESULT AddHierarchicalScope( LPCWSTR pszURL, BOOL fInclude, BOOL fDefault, BOOL fOverrideChildren );
Parameters
- pszURL
[in] The URL of the scope to be added.- fInclude
[in] TRUE if this is an inclusion scope, FALSE if this is an exclusion scope.- fDefault
[in] TRUE if this is to be the default scope, FALSE if this is not a default scope.- fOverrideChildren
[in] TRUE if this scope overrides all of the child URL rules, FALSE otherwise.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
The preferred methods for such functionality are ISearchCrawlScopeManager::AddDefaultScopeRule and ISearchCrawlScopeManager::AddUserScopeRule.
Overrides any existing scope rule for the URL.