Share via


ISearchItemsChangedSink::OnItemsChanged Method

Call this method to notify an indexer to re-index some changed items.

Syntax

HRESULT OnItemsChanged(      
    DWORD dwNumberOfChanges,
    SEARCH_ITEM_CHANGE rgDataChangeEntries[],
    DWORD rgdwDocIds[],
    HRESULT rghrCompletionCodes[]
);

Parameters

  • dwNumberOfChanges
    [in] The number of items that have changed.
  • rgDataChangeEntries
    [in]  An array of SEARCH_ITEM_CHANGE structures, describing the type of changes to and the paths or URLs of each item.
  • rgdwDocIds
    [out]  Receives a pointer to an array of document identifiers for the items that changed.
  • rghrCompletionCodes
    [out]  Receives a pointer to an array of completion codes for rgdwDocIds indicating whether each item was accepted for indexing.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

When there are multiple change notifications, the priority member of the SEARCH_ITEM_CHANGE structure indicates the priority of processing.

See Also

Notifying the Index of Changes