function search_drush_command

8.0.x search.drush.inc search_drush_command()
6.x search.drush.inc search_drush_command()
7.x search.drush.inc search_drush_command()
5.x search.drush.inc search_drush_command()
master search.drush.inc search_drush_command()

File

commands/core/search.drush.inc, line 3

Code

function search_drush_command() {
  $items['search-status'] = array(
    'description' => 'Show how many items remain to be indexed out of the total.',
    'drupal dependencies' => array('search'),
    'options' => array(
      'pipe' => 'Display in the format remaining/total for processing by scripts.',
    ),
  );
  $items['search-index'] = array(
    'description' => 'Index the remaining search items without wiping the index.',
    'drupal dependencies' => array('search'),
  );
  $items['search-reindex'] = array(
    'description' => 'Force the search index to be rebuilt.',
    'drupal dependencies' => array('search'),
    'options' => array(
      'immediate' => 'Rebuild the index immediately, instead of waiting for cron.',
    ),
  );
  return $items;
}