You are here

function apachesolr_get_indexer_table in Apache Solr Search 6.3

Same name and namespace in other branches
  1. 8 apachesolr.module \apachesolr_get_indexer_table()
  2. 7 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
Helper function for the hook_nodeapi().
apachesolr_index_nodeapi_mass_delete in ./apachesolr.index.inc
Mass delete nodes form 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 2018
Integration with the Apache Solr search application.

Code

function apachesolr_get_indexer_table($type) {
  $entity_info = apachesolr_get_index_callbacks();
  if (isset($entity_info[$type]['index_table'])) {
    $indexer_table = $entity_info[$type]['index_table'];
  }
  else {
    $indexer_table = 'apachesolr_index_entities';
  }
  return db_escape_table($indexer_table);
}