You are here

function apachesolr_drush_solr_reindex in Apache Solr Search 5.2

Same name and namespace in other branches
  1. 6 drush/apachesolr.drush.inc \apachesolr_drush_solr_reindex()
  2. 6.2 drush/apachesolr.drush.inc \apachesolr_drush_solr_reindex()
1 string reference to 'apachesolr_drush_solr_reindex'
apachesolr_drush_command in ./apachesolr.drush.inc
Implementation of hook_drush_command().

File

./apachesolr.drush.inc, line 112
drush integration for apachesolr.

Code

function apachesolr_drush_solr_reindex() {
  $args = func_get_args();
  if (count($args) > 0) {
    foreach ($args as $type) {
      apachesolr_rebuild_index_table($type);
    }
  }
  else {
    apachesolr_rebuild_index_table();
  }
}