public function SearchApiDataSourceControllerInterface::getChangedItems in Search API 7
Retrieves a list of items that need to be indexed.
If possible, completely unindexed items should be returned before items that were indexed but later changed. Also, items that were changed longer ago should be favored.
Parameters
SearchApiIndex $index: The index for which changed items should be returned.
int $limit: The maximum number of items to return. Negative values mean "unlimited".
Return value
array The IDs of items that need to be indexed for the given index.
Throws
SearchApiDataSourceException If any error state was encountered.
1 method overrides SearchApiDataSourceControllerInterface::getChangedItems()
- SearchApiAbstractDataSourceController::getChangedItems in includes/
datasource.inc - Retrieves a list of items that need to be indexed.
File
- includes/
datasource.inc, line 265 - 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 getChangedItems(SearchApiIndex $index, $limit = -1);