You are here

function oa_search_default_search_api_server_alter in Open Atrium Search 7.2

Implements hook_default_search_api_server_alter().

File

./oa_search.features.inc, line 32
oa_search.features.inc

Code

function oa_search_default_search_api_server_alter(&$data) {
  if (isset($data['database_server'])) {
    $data['database_server']->options['indexes']['database_node_index']['field_oa_related'] = array(
      'table' => 'search_api_db_database_node_index_field_oa_related',
      'type' => 'list<integer>',
      'boost' => '1.0',
    );

    /* WAS: '' */
    $data['database_server']->options['indexes']['database_node_index']['field_oa_related:field_paragraph_text:value'] = array(
      'table' => 'search_api_db_database_node_index_text',
      'type' => 'list<text>',
      'boost' => '1.0',
    );

    /* WAS: '' */
    $data['database_server']->options['indexes']['database_node_index']['field_oa_related:snippet_body'] = array(
      'table' => 'search_api_db_database_node_index_text',
      'type' => 'list<text>',
      'boost' => '1.0',
    );

    /* WAS: '' */
    $data['database_server']->options['indexes']['database_node_index']['oa_section_ref:title'] = array(
      'table' => 'search_api_db_database_node_index_oa_section_ref_title',
      'type' => 'string',
      'boost' => '1.0',
    );

    /* WAS: '' */
    $data['database_server']->options['indexes']['database_node_index']['og_group_ref:title'] = array(
      'table' => 'search_api_db_database_node_index_og_group_ref_title',
      'type' => 'string',
      'boost' => '1.0',
    );

    /* WAS: '' */
    $data['database_server']->options['indexes']['user_index'] = array(
      'name' => array(
        'table' => 'search_api_db_user_index_name',
        'type' => 'text',
        'boost' => '1.0',
      ),
      'mail' => array(
        'table' => 'search_api_db_user_index_name',
        'type' => 'text',
        'boost' => '1.0',
      ),
      'og_user_node' => array(
        'table' => 'search_api_db_user_index_og_user_node',
        'type' => 'list<integer>',
        'boost' => '1.0',
      ),
      'field_user_display_name' => array(
        'table' => 'search_api_db_user_index_name',
        'type' => 'text',
        'boost' => '5.0',
      ),
      'search_api_language' => array(
        'table' => 'search_api_db_user_index_search_api_language',
        'type' => 'string',
        'boost' => '1.0',
      ),
      'search_api_url' => array(
        'table' => 'search_api_db_user_index_search_api_url',
        'type' => 'uri',
        'boost' => '1.0',
      ),
    );

    /* WAS: '' */
  }
}