function search_api_index_reindex in Search API 7
Schedules a search index for re-indexing.
Parameters
$id: The ID or machine name of the index to re-index.
Return value
bool TRUE on success, FALSE on failure.
File
- ./
search_api.module, line 3011 - Provides a flexible framework for implementing search services.
Code
function search_api_index_reindex($id) {
$index = search_api_index_load($id);
return $index
->reindex();
}