function apachesolr_get_indexer_table in Apache Solr Search 7
Same name and namespace in other branches
- 8 apachesolr.module \apachesolr_get_indexer_table()
- 6.3 apachesolr.module \apachesolr_get_indexer_table()
Retrieve the indexer table for an entity type.
14 calls to apachesolr_get_indexer_table()
- apachesolr_entity_update in ./
apachesolr.module - Implements hook_entity_update().
- apachesolr_index_nodeapi_mass_delete in ./
apachesolr.index.inc - Mass delete nodes from the solr indexer tables. TODO: This always assumes the default environment!
- apachesolr_index_nodeapi_mass_update in ./
apachesolr.index.inc - Mass Update nodes from the solr indexer table TODO: This always assumes the default environment!
- apachesolr_index_node_check_table in ./
apachesolr.index.inc - hook_cron() helper to try to make the index table consistent with their respective entity table.
- apachesolr_index_node_solr_reindex in ./
apachesolr.index.inc - Reindexing callback for ApacheSolr, for nodes.
File
- ./
apachesolr.module, line 2057 - Integration with the Apache Solr search application.
Code
function apachesolr_get_indexer_table($type) {
$entity_info = entity_get_info();
if (isset($entity_info[$type]['apachesolr']['index_table'])) {
$indexer_table = $entity_info[$type]['apachesolr']['index_table'];
}
else {
$indexer_table = 'apachesolr_index_entities';
}
return $indexer_table;
}