function drush_search_api_clear in Search API 8
Same name and namespace in other branches
- 7 search_api.drush.inc \drush_search_api_clear()
Clears a search index.
Parameters
string|null $index_id: (optional) The ID of the search index which should be cleared, or NULL to clear all search indexes.
File
- ./
search_api.drush.inc, line 333 - Drush commands for Search API.
Code
function drush_search_api_clear($index_id = NULL) {
$command_helper = _search_api_drush_command_helper();
$command_helper
->clearIndexCommand([
$index_id,
]);
}