function apachesolr_og_apachesolr_field_mappings_alter in Apache Solr Organic Groups Integration 7
Implements hook_apachesolr_field_mappings_alter().
Adds some special facets for the Audience Field as defined by OG
File
- ./
apachesolr_og.module, line 13 - Integrates Organic Group info with Apache Solr search application.
Code
function apachesolr_og_apachesolr_field_mappings_alter(&$mappings) {
$mappings['per-field'][OG_AUDIENCE_FIELD] = $mappings['entityreference'];
$mappings['per-field'][OG_AUDIENCE_FIELD]['alter callbacks'][] = 'apachesolr_og_alter_callback';
$mappings['per-field'][OG_AUDIENCE_FIELD]['map callback'] = 'apachesolr_og_map_gid_label';
}