function apachesolr_index_mark_for_reindex in Apache Solr Search 6.3
Same name and namespace in other branches
- 8 apachesolr.index.inc \apachesolr_index_mark_for_reindex()
- 7 apachesolr.index.inc \apachesolr_index_mark_for_reindex()
Parameters
$entity_type:
Throws
Exception
5 calls to apachesolr_index_mark_for_reindex()
- apachesolr_drush_solr_mark_for_reindex in drush/
apachesolr.drush.inc - apachesolr_enable in ./
apachesolr.install - Implements hook_enable().
- apachesolr_index_action_form_reset_confirm_submit in ./
apachesolr.admin.inc - Submit handler for the deletion form.
- apachesolr_index_delete_index in ./
apachesolr.index.inc - Delete the whole index for an environment.
- apachesolr_search_search in ./
apachesolr_search.module - Implements of hook_search().
File
- ./
apachesolr.index.inc, line 680 - Functions related to Apache Solr indexing operations.
Code
function apachesolr_index_mark_for_reindex($env_id, $entity_type = 'node') {
foreach (content_types() as $bundle => $entity_info) {
if (!empty($entity_info['extra']['apachesolr']['index'])) {
$reindex_callback = apachesolr_entity_get_callback($entity_type, 'reindex callback');
}
if (!empty($reindex_callback)) {
call_user_func($reindex_callback, $env_id, $bundle);
}
}
apachesolr_clear_last_index_position($env_id, $entity_type);
cache_clear_all('*', 'cache_apachesolr', TRUE);
}