You are here

public function Index::startBatchTracking in Search API 8

Puts the index into "batch tracking" mode.

This mode should be used when adding batches of items to the index's tracking tables, or when marking them as updated. This will prevent the index from immediately trying to index all of these items, even if its "index_directly" option is set.

Return value

$this

Overrides IndexInterface::startBatchTracking

See also

\Drupal\search_api\IndexInterface::trackItemsInserted()

\Drupal\search_api\IndexInterface::trackItemsUpdated()

File

src/Entity/Index.php, line 1039

Class

Index
Defines the search index configuration entity.

Namespace

Drupal\search_api\Entity

Code

public function startBatchTracking() {
  $this->batchTracking++;
  return $this;
}