You are here

function countries_apachesolr_field_mappings in Countries 8

Same name and namespace in other branches
  1. 7.2 countries.module \countries_apachesolr_field_mappings()

Implements hook_apachesolr_field_mappings().

File

./countries.module, line 1050
Defines the field and entity information for countries.

Code

function countries_apachesolr_field_mappings() {
  $mappings = array(
    'country' => array(
      'display_callback' => 'countries_apachesolr_display_callback',
      'indexing_callback' => 'countries_apachesolr_indexing_callback',
      'map callback' => 'countries_apachesolr_map_callback',
      'index_type' => 'string',
      'facets' => TRUE,
    ),
  );
  return $mappings;
}