IRowsetPrioritization interface (searchapi.h)

Sets or retrieves the current indexer prioritization level for the scope specified by this query.

Inheritance

The IRowsetPrioritization interface inherits from the IUnknown interface. IRowsetPrioritization also has these types of members:

Methods

The IRowsetPrioritization interface has these methods.

 
IRowsetPrioritization::GetScopePriority

Retrieves the current indexer prioritization level for the scope specified by this query.
IRowsetPrioritization::GetScopeStatistics

Gets information describing the scope specified by this query.
IRowsetPrioritization::SetScopePriority

Sets the current indexer prioritization level for the scope specified by this query.

Remarks

This interface is acquired with IUnknown::QueryInterface Method on an indexer rowset. DBPROP_ENABLEROWSETEVENTS must be set to TRUE with the OLE DB ICommandProperties::SetProperties method prior to executing the query in order to use rowset prioritization.

IRowsetPrioritization::SetScopePriority sets the prioritization for the scopes belonging to the query, and the interval the scope statistics event is raised when there are outstanding documents to be indexed within the query scopes. This event is raised if the priority level is set to default.

IRowsetPrioritization::GetScopeStatistics can be used to get the number of indexed items in the scope, the number of outstanding documents to be added in the scope, and the number of documents that need to be re-indexed within this scope.

For a sample that demonstrates how to prioritize indexing events, see the SearchEvents 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

IRowsetEvents

Indexing Prioritization and Rowset Events in Windows 7

Notifications Process (Windows Search)

PRIORITIZE_FLAGS

PRIORITY_LEVEL

ROWSETEVENT_ITEMSTATE

ROWSETEVENT_TYPE

Reference

Rowset Properties