IRowsetPrioritization::SetScopePriority method (searchapi.h)
Sets the current indexer prioritization level for the scope specified by this query.
Syntax
HRESULT SetScopePriority(
[in] PRIORITY_LEVEL priority,
[in] DWORD scopeStatisticsEventFrequency
);
Parameters
[in] priority
Type: PRIORITY_LEVEL
Specifies the new indexer prioritization level to be set as the PRIORITY_LEVEL enumeration.
[in] scopeStatisticsEventFrequency
Type: DWORD
Specifies the occurrence interval of the scope statistics event when there are outstanding documents to be indexed within the query scopes.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
Check out the SearchEvents code sample.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7 [desktop apps only] |
Minimum supported server | Windows Server 2008 R2 [desktop apps only] |
Target Platform | Windows |
Header | searchapi.h |
See also
Conceptual
Indexing Prioritization and Rowset Events in Windows 7
Reference