Skip to content

Latest commit

 

History

History
93 lines (69 loc) · 3.83 KB

nf-searchapi-isearchcrawlscopemanager-addhierarchicalscope.md

File metadata and controls

93 lines (69 loc) · 3.83 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:searchapi.ISearchCrawlScopeManager.AddHierarchicalScope
ISearchCrawlScopeManager::AddHierarchicalScope (searchapi.h)
Adds a hierarchical scope to the search engine.
AddHierarchicalScope
AddHierarchicalScope method [search]
AddHierarchicalScope method [search]
ISearchCrawlScopeManager interface
ISearchCrawlScopeManager interface [search]
AddHierarchicalScope method
ISearchCrawlScopeManager.AddHierarchicalScope
ISearchCrawlScopeManager::AddHierarchicalScope
_search_ISearchCrawlScopeManager_AddHierachicalScope
search._search_ISearchCrawlScopeManager_AddHierachicalScope
searchapi/ISearchCrawlScopeManager::AddHierarchicalScope
search\_search_ISearchCrawlScopeManager_AddHierachicalScope.htm
search
VS|search|~\search\wds3x\reference\ifaces\crawlscope\isearchcrawlscopemanager\addhierarchicalscope.htm
12/05/2018
AddHierarchicalScope, AddHierarchicalScope method [search], AddHierarchicalScope method [search],ISearchCrawlScopeManager interface, ISearchCrawlScopeManager interface [search],AddHierarchicalScope method, ISearchCrawlScopeManager.AddHierarchicalScope, ISearchCrawlScopeManager::AddHierarchicalScope, _search_ISearchCrawlScopeManager_AddHierachicalScope, search._search_ISearchCrawlScopeManager_AddHierachicalScope, searchapi/ISearchCrawlScopeManager::AddHierarchicalScope
searchapi.h
Windows
Windows XP with SP2, Windows Vista [desktop apps only]
Windows Server 2003 with SP1 [desktop apps only]
Searchcrawlscopemanager.idl
Windows
Windows Desktop Search (WDS) 3.0
19H1
ISearchCrawlScopeManager::AddHierarchicalScope
searchapi/ISearchCrawlScopeManager::AddHierarchicalScope
c++
APIRef
kbSyntax
COM
Searchapi.h
ISearchCrawlScopeManager.AddHierarchicalScope

ISearchCrawlScopeManager::AddHierarchicalScope

-description

Adds a hierarchical scope to the search engine.

-parameters

-param pszURL [in]

Type: LPCWSTR

The URL of the scope to be added.

-param fInclude [in]

Type: BOOL

TRUE if this is an inclusion scope, FALSE if this is an exclusion scope.

-param fDefault [in]

Type: BOOL

TRUE if this is to be the default scope, FALSE if this is not a default scope.

-param fOverrideChildren [in]

Type: BOOL

TRUE if this scope overrides all of the child URL rules, FALSE otherwise.

-returns

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

-remarks

This method overrides existing scope rules for the URL.The preferred methods for such functionality are ISearchCrawlScopeManager::AddDefaultScopeRule and ISearchCrawlScopeManager::AddUserScopeRule.

URLs passed in as parameters to ISearchCrawlScopeManager::AddHierarchicalScope are expected to be fully URL-decoded and without URL control codes. For example, file:///c:\My Documents is fully URL-decoded, whereas file:///c:\My%20Documents is not.

Windows 7 and later: Check out the CrawlScopeCommandLine code sample to see how to define command line options for Crawl Scope Manager (CSM) indexing operations.