IRowsetPrioritization interface

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

Members

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

Methods

The IRowsetPrioritization interface has these methods.

MethodDescription
GetScopePriority

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

GetScopeStatistics

Gets information describing the scope specified by this query.

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.

The SearchEvents code sample, available on Code Gallery and the Windows 7 SDK, demonstrates how to prioritize indexing events.

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Searchapi.h

IDL

Searchquery.idl

See also

Reference
IRowsetEvents
PRIORITY_LEVEL
PRIORITIZE_FLAGS
ROWSETEVENT_ITEMSTATE
ROWSETEVENT_TYPE
Rowset Properties
Conceptual
Indexing Prioritization and Rowset Events in Windows 7
Notifications Process (Windows Search)

 

 

Community Additions

ADD
Show: