You are here

function _search_api_index_reindex in Search API 7

Helper method for marking all items on an index as needing re-indexing.

Parameters

SearchApiIndex $index: The index whose items should be re-indexed.

4 calls to _search_api_index_reindex()
SearchApiIndex::clear in includes/index_entity.inc
Clears this search index and schedules all of its items for re-indexing.
SearchApiIndex::reindex in includes/index_entity.inc
Schedules this search index for re-indexing.
SearchApiServer::fieldsUpdated in includes/server_entity.inc
Notifies the server that the field settings for the index have changed.
search_api_search_api_index_update in ./search_api.module
Implements hook_search_api_index_update().

File

./search_api.module, line 3022
Provides a flexible framework for implementing search services.

Code

function _search_api_index_reindex(SearchApiIndex $index) {
  $index
    ->datasource()
    ->trackItemChange(FALSE, array(
    $index,
  ), TRUE);
}