public function UnsavedIndexConfiguration::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/
UnsavedIndexConfiguration.php, line 562
Class
- UnsavedIndexConfiguration
- Represents a configuration of an index that was not yet permanently saved.
Namespace
Drupal\search_apiCode
public function startBatchTracking() {
$this->entity
->startBatchTracking();
return $this;
}