You are here

public function SearchApiIndex::reindex in Search API 7

Schedules this search index for re-indexing.

Return value

bool TRUE on success, FALSE on failure.

File

includes/index_entity.inc, line 320
Contains SearchApiIndex.

Class

SearchApiIndex
Class representing a search index.

Code

public function reindex() {
  if (!$this->server || $this->read_only) {
    return TRUE;
  }
  _search_api_index_reindex($this);
  module_invoke_all('search_api_index_reindex', $this, FALSE);
  return TRUE;
}