function apachesolr_drush_solr_mark_for_reindex in Apache Solr Search 7
Same name and namespace in other branches
- 8 drush/apachesolr.drush.inc \apachesolr_drush_solr_mark_for_reindex()
- 6.3 drush/apachesolr.drush.inc \apachesolr_drush_solr_mark_for_reindex()
Mark all of a specific environment id for reindexing
1 string reference to 'apachesolr_drush_solr_mark_for_reindex'
- apachesolr_drush_command in drush/
apachesolr.drush.inc - Implements hook_drush_command().
File
- drush/
apachesolr.drush.inc, line 251 - drush integration for apachesolr.
Code
function apachesolr_drush_solr_mark_for_reindex() {
module_load_include('inc', 'apachesolr', 'apachesolr.index');
$args = func_get_args();
$env_id = drush_get_option('environment-id');
if (empty($env_id)) {
$env_id = apachesolr_default_environment();
}
if (count($args) > 0) {
foreach ($args as $type) {
apachesolr_index_mark_for_reindex($env_id, $type);
}
}
else {
apachesolr_index_mark_for_reindex($env_id);
}
drush_print(t('Marked content for reindexing'));
}