You are here

public function SearchApiDataSourceControllerInterface::trackItemInsert in Search API 7

Starts tracking the index status for the given items on the given indexes.

Parameters

array $item_ids: The IDs of new items to track.

SearchApiIndex[] $indexes: The indexes for which items should be tracked.

Return value

SearchApiIndex[]|null All indexes for which any items were added; or NULL if items were added for all of them.

Throws

SearchApiDataSourceException If any error state was encountered.

1 method overrides SearchApiDataSourceControllerInterface::trackItemInsert()
SearchApiAbstractDataSourceController::trackItemInsert in includes/datasource.inc
Starts tracking the index status for the given items on the given indexes.

File

includes/datasource.inc, line 168
Contains the SearchApiDataSourceControllerInterface as well as a default base class.

Class

SearchApiDataSourceControllerInterface
Interface for all data source controllers for Search API indexes.

Code

public function trackItemInsert(array $item_ids, array $indexes);