public function IndexTaskManager::addItemsAll in Search API 8
Tracks all remaining items for the given index.
Since no kind of batch processing is used, this might run out of memory or execution time on larger sites.
Parameters
\Drupal\search_api\IndexInterface $index: The search index.
Throws
\Drupal\search_api\SearchApiException Thrown if any error occurred while tracking items.
Overrides IndexTaskManagerInterface::addItemsAll
File
- src/
Task/ IndexTaskManager.php, line 211
Class
- IndexTaskManager
- Provides a service for managing pending index tasks.
Namespace
Drupal\search_api\TaskCode
public function addItemsAll(IndexInterface $index) {
$this->taskManager
->executeAllTasks($this
->getTaskConditions($index));
}