function apachesolr_get_index_callbacks in Apache Solr Search 6.3
Return a set of callbacks for indexing a node
Return value
array $default_entity_info
4 calls to apachesolr_get_index_callbacks()
- apachesolr_content_extra_fields in ./
apachesolr.module - Implements hook_content_extra_fields().
- apachesolr_cron in ./
apachesolr.module - Implements hook_cron(). Runs the indexing process on all writable environments or just a given environment. @todo See if we can add info to the content type array for the cron_check
- apachesolr_entity_get_callback in ./
apachesolr.module - Returns the callback function appropriate for a given entity type/bundle.
- apachesolr_get_indexer_table in ./
apachesolr.module - Retrieve the indexer table for an entity type.
File
- ./
apachesolr.module, line 1851 - Integration with the Apache Solr search application.
Code
function apachesolr_get_index_callbacks() {
// Set those values that we know. Other modules can do so
// for their own entities if they want.
$default_entity_info = array();
$default_entity_info['node']['indexable'] = TRUE;
$default_entity_info['node']['status callback'][] = 'apachesolr_index_node_status_callback';
$default_entity_info['node']['document callback'][] = 'apachesolr_index_node_solr_document';
$default_entity_info['node']['reindex callback'] = 'apachesolr_index_node_solr_reindex';
$default_entity_info['node']['bundles changed callback'] = 'apachesolr_index_node_bundles_changed';
$default_entity_info['node']['index_table'] = 'apachesolr_index_entities_node';
$default_entity_info['node']['cron_check'] = 'apachesolr_index_node_check_table';
// apachesolr_search implements a new callback for every entity type
// $default_entity_info['node']['apachesolr']['result callback'] = 'apachesolr_search_node_result';
//Allow implementations of HOOK_apachesolr_entity_info to modify these default indexers
drupal_alter('apachesolr_entity_info', $default_entity_info);
return $default_entity_info;
}