You are here

public function IndexInterface::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

See also

\Drupal\search_api\IndexInterface::trackItemsInserted()

\Drupal\search_api\IndexInterface::trackItemsUpdated()

2 methods override IndexInterface::startBatchTracking()
Index::startBatchTracking in src/Entity/Index.php
Puts the index into "batch tracking" mode.
UnsavedIndexConfiguration::startBatchTracking in src/UnsavedIndexConfiguration.php
Puts the index into "batch tracking" mode.

File

src/IndexInterface.php, line 634

Class

IndexInterface
Defines the interface for index entities.

Namespace

Drupal\search_api

Code

public function startBatchTracking();