You are here

function search_api_track_item_queued in Search API 7

Marks items as queued for indexing for the specified index.

Parameters

SearchApiIndex $index: The index on which items were queued.

array $item_ids: The ids of the queued items.

Deprecated

As of Search API 1.10, the cron queue is not used for indexing anymore, therefore this function has become useless. It will, along with SearchApiDataSourceControllerInterface::trackItemQueued(), be removed in the Drupal 8 version of this module.

File

./search_api.module, line 1338
Provides a flexible framework for implementing search services.

Code

function search_api_track_item_queued(SearchApiIndex $index, array $item_ids) {
  try {
    $index
      ->datasource()
      ->trackItemQueued($item_ids, $index);
  } catch (SearchApiException $e) {
    watchdog_exception('search_api', $e);
  }
}