You are here

function entityreference_apachesolr_field_mappings in Apache Solr Search 8

Same name and namespace in other branches
  1. 7 apachesolr.module \entityreference_apachesolr_field_mappings()

Implements hook_apachesolr_field_mappings() on behalf of EntityReferences (entityreference)

See also

http://drupal.org/node/1572722

File

./apachesolr.module, line 2649
Integration with the Apache Solr search application.

Code

function entityreference_apachesolr_field_mappings() {
  $mappings = array(
    'entityreference' => array(
      'indexing_callback' => 'apachesolr_entityreference_indexing_callback',
      'map callback' => 'apachesolr_entityreference_facet_map_callback',
      'index_type' => 'string',
      'facets' => TRUE,
      'query types' => array(
        'term',
      ),
      'facet missing allowed' => TRUE,
    ),
  );
  return $mappings;
}