You are here

public function UnsavedIndexConfiguration::reindex in Search API 8

Marks all items in this index for reindexing.

Throws

\Drupal\search_api\SearchApiException Thrown if an internal error prevented the operation from succeeding – for example, if the tracker couldn't be loaded.

Overrides IndexInterface::reindex

File

src/UnsavedIndexConfiguration.php, line 599

Class

UnsavedIndexConfiguration
Represents a configuration of an index that was not yet permanently saved.

Namespace

Drupal\search_api

Code

public function reindex() {
  $this->entity
    ->reindex();
}