function oa_search_default_search_api_index_alter in Open Atrium Search 7.2
Implements hook_default_search_api_index_alter().
File
- ./
oa_search.module, line 84
Code
function oa_search_default_search_api_index_alter(&$data) {
if (isset($data['database_node_index'])) {
$data['database_node_index']->options['fields']['created'] = array(
'type' => 'date',
);
/* WAS: '' */
$data['database_node_index']->options['fields']['og_group_ref:title'] = array(
'type' => 'string',
);
/* WAS: '' */
$data['database_node_index']->options['fields']['oa_section_ref:title'] = array(
'type' => 'string',
);
/* WAS: '' */
}
if (isset($data['node_index'])) {
$data['node_index']->options['fields']['created'] = array(
'type' => 'date',
);
/* WAS: '' */
$data['node_index']->options['fields']['og_group_ref:title'] = array(
'type' => 'string',
);
/* WAS: '' */
$data['node_index']->options['fields']['oa_section_ref:title'] = array(
'type' => 'string',
);
/* WAS: '' */
}
}