function oa_search_default_search_api_index in Open Atrium Search 7.2
Implements hook_default_search_api_index().
File
- ./
oa_search.features.inc, line 107 - oa_search.features.inc
Code
function oa_search_default_search_api_index() {
$items = array();
$items['solr_user_index'] = entity_import('search_api_index', '{
"name" : "Solr User Index",
"machine_name" : "solr_user_index",
"description" : null,
"server" : "solr_server",
"item_type" : "user",
"options" : {
"index_directly" : 0,
"cron_limit" : "50",
"fields" : {
"field_user_display_name" : { "type" : "text", "boost" : "5.0" },
"mail" : { "type" : "text" },
"name" : { "type" : "text" },
"og_user_node" : { "type" : "list\\u003Cinteger\\u003E", "entity_type" : "node" },
"search_api_language" : { "type" : "string" }
},
"data_alter_callbacks" : {
"search_api_alter_role_filter" : {
"status" : 0,
"weight" : "-10",
"settings" : { "default" : "1", "roles" : [] }
},
"search_api_alter_add_hierarchy" : { "status" : 0, "weight" : "0", "settings" : { "fields" : [] } },
"search_api_alter_add_viewed_entity" : { "status" : 0, "weight" : "0", "settings" : { "mode" : "full" } },
"search_api_alter_add_aggregation" : { "status" : 0, "weight" : "0", "settings" : [] },
"search_api_alter_add_url" : { "status" : 0, "weight" : "0", "settings" : [] }
},
"processors" : {
"search_api_case_ignore" : {
"status" : 0,
"weight" : "0",
"settings" : { "fields" : { "name" : true, "mail" : true, "field_user_display_name" : true } }
},
"search_api_html_filter" : {
"status" : 0,
"weight" : "10",
"settings" : {
"fields" : { "name" : true, "mail" : true, "field_user_display_name" : true },
"title" : 0,
"alt" : 1,
"tags" : "h1 = 5\\r\\nh2 = 3\\r\\nh3 = 2\\r\\nstrong = 2\\r\\nb = 2\\r\\nem = 1.5\\r\\nu = 1.5"
}
},
"search_api_tokenizer" : {
"status" : 0,
"weight" : "20",
"settings" : {
"fields" : { "name" : true, "mail" : true, "field_user_display_name" : true },
"spaces" : "[^[:alnum:]]",
"ignorable" : "[\\u0027]"
}
},
"search_api_stopwords" : {
"status" : 0,
"weight" : "30",
"settings" : {
"fields" : { "name" : true, "mail" : true, "field_user_display_name" : true },
"file" : "",
"stopwords" : "but\\r\\ndid\\r\\nthe this that those\\r\\netc"
}
}
}
},
"enabled" : "0",
"read_only" : "0"
}');
$items['user_index'] = entity_import('search_api_index', '{
"name" : "User Index",
"machine_name" : "user_index",
"description" : null,
"server" : "database_server",
"item_type" : "user",
"options" : {
"index_directly" : 0,
"cron_limit" : "50",
"fields" : {
"field_user_display_name" : { "type" : "text", "boost" : "5.0" },
"mail" : { "type" : "text" },
"name" : { "type" : "text" },
"og_user_node" : { "type" : "list\\u003Cinteger\\u003E", "entity_type" : "node" },
"search_api_language" : { "type" : "string" },
"search_api_url" : { "type" : "uri" }
},
"data_alter_callbacks" : {
"search_api_alter_role_filter" : {
"status" : 0,
"weight" : "-10",
"settings" : { "default" : "1", "roles" : [] }
},
"search_api_alter_add_hierarchy" : { "status" : 0, "weight" : "0", "settings" : { "fields" : [] } },
"search_api_alter_add_viewed_entity" : { "status" : 0, "weight" : "0", "settings" : { "mode" : "full" } },
"search_api_alter_add_aggregation" : { "status" : 0, "weight" : "0", "settings" : [] },
"search_api_alter_add_url" : { "status" : 1, "weight" : "0", "settings" : [] }
},
"processors" : {
"search_api_case_ignore" : {
"status" : 1,
"weight" : "0",
"settings" : { "fields" : { "name" : true, "mail" : true, "field_user_display_name" : true } }
},
"search_api_html_filter" : {
"status" : 1,
"weight" : "10",
"settings" : {
"fields" : [],
"title" : 0,
"alt" : 0,
"tags" : "h1 = 5\\r\\nh2 = 3\\r\\nh3 = 2\\r\\nstrong = 2\\r\\nb = 2\\r\\nem = 1.5\\r\\nu = 1.5"
}
},
"search_api_transliteration" : {
"status" : 0,
"weight" : "15",
"settings" : { "fields" : { "name" : true, "mail" : true, "field_user_display_name" : true } }
},
"search_api_tokenizer" : {
"status" : 1,
"weight" : "20",
"settings" : {
"fields" : { "name" : true, "mail" : true, "field_user_display_name" : true },
"spaces" : "[^[:alnum:]]",
"ignorable" : "[\\u0027]"
}
},
"search_api_stopwords" : {
"status" : 0,
"weight" : "30",
"settings" : {
"fields" : { "name" : true, "mail" : true, "field_user_display_name" : true },
"file" : "",
"stopwords" : "but\\r\\ndid\\r\\nthe this that those\\r\\netc"
}
}
}
},
"enabled" : "1",
"read_only" : "0"
}');
return $items;
}