You are here

function drush_search_api_search in Search API 8

Executes a simple keyword search and displays the results in a table.

Parameters

string $index_id: The ID of the index being searched.

string $keyword: The search keyword.

File

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

Code

function drush_search_api_search($index_id, $keyword) {
  $command_helper = _search_api_drush_command_helper();
  $rows = $command_helper
    ->searchIndexCommand($index_id, $keyword);
  drush_print_table($rows);
}