You are here

public function SearchApiCommands::rebuildTracker in Search API 8

Rebuilds the trackers for one or all indexes.

@command search-api:rebuild-tracker

@usage drush search-api:rebuild-tracker Rebuild the trackers of all search indexes.

@usage drush sapi-rt Alias for rebuilding the trackers of all search indexes. @usage drush sapi-rt node_index Rebuild the tracker of the search index with the ID node_index.

@aliases sapi-rt,search-api-rebuild-tracker

Parameters

string $indexId: The machine name of an index. Optional. If missed, will rebuild the trackers of all indexes.

File

src/Commands/SearchApiCommands.php, line 300

Class

SearchApiCommands
Defines Drush commands for the Search API.

Namespace

Drupal\search_api\Commands

Code

public function rebuildTracker($indexId = NULL) {
  $this->commandHelper
    ->rebuildTrackerCommand([
    $indexId,
  ]);
}