function drush_core_search_index

3.x search.drush.inc drush_core_search_index()
4.x search.drush.inc drush_core_search_index()

File

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

Code

function drush_core_search_index() {
  drush_print(dt("Building the index may take a long time."));
  if (!drush_confirm(dt('Do you really want to continue?'))) {
    return drush_set_error('CORE_SEARCH_REBUILD_ABORT', 'Aborting.');
  }
  drush_op('_drush_core_search_index');
  drush_log(dt('The search index has been built.'), 'ok');
}