You are here

function apachesolr_drush_solr_reindex in Apache Solr Search 6

Same name and namespace in other branches
  1. 5.2 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 drush/apachesolr.drush.inc
Implementation of hook_drush_command().

File

drush/apachesolr.drush.inc, line 110
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();
  }
}