You are here

function apachesolr_get_indexer_table in Apache Solr Search 8

Same name and namespace in other branches
  1. 6.3 apachesolr.module \apachesolr_get_indexer_table()
  2. 7 apachesolr.module \apachesolr_get_indexer_table()

Retrieve the indexer table for an entity type.

13 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.
apachesolr_index_nodeapi_mass_update in ./apachesolr.index.inc
Mass Update nodes from the solr indexer table
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.

... See full list

File

./apachesolr.module, line 2010
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;
}