You are here

function drush_search_api_reset_tracker in Search API 8

Schedules a search index for reindexing.

Parameters

string|null $index_id: (optional) The index ID for which items should be reindexed, or NULL to reindex all search indexes.

File

./search_api.drush.inc, line 320
Drush commands for Search API.

Code

function drush_search_api_reset_tracker($index_id = NULL) {
  $command_helper = _search_api_drush_command_helper();
  $entity_types = drush_get_option_list('entity-types');
  $command_helper
    ->resetTrackerCommand([
    $index_id,
  ], $entity_types);
}