function angularjs_map_default_search_api_index in AngularJS 7
Implements hook_default_search_api_index().
File
- modules/
angularjs_map/ angularjs_map.features.inc, line 52 - angularjs_map.features.inc
Code
function angularjs_map_default_search_api_index() {
$items = array();
$items['earthquake'] = entity_import('search_api_index', '{
"name" : "Earthquake",
"machine_name" : "earthquake",
"description" : null,
"server" : "earthquake",
"item_type" : "node",
"options" : {
"index_directly" : 0,
"cron_limit" : "50",
"data_alter_callbacks" : {
"search_api_alter_bundle_filter" : {
"status" : 1,
"weight" : "-10",
"settings" : { "default" : "0", "bundles" : { "earthquake" : "earthquake" } }
},
"search_api_alter_node_access" : { "status" : 0, "weight" : "0", "settings" : [] },
"search_api_alter_node_status" : { "status" : 0, "weight" : "0", "settings" : [] },
"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_url" : { "status" : 0, "weight" : "0", "settings" : [] },
"search_api_alter_add_aggregation" : { "status" : 0, "weight" : "0", "settings" : [] }
},
"processors" : {
"search_api_case_ignore" : { "status" : 0, "weight" : "0", "settings" : { "fields" : [] } },
"search_api_html_filter" : {
"status" : 0,
"weight" : "10",
"settings" : {
"fields" : [],
"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" : [], "spaces" : "[^[:alnum:]]", "ignorable" : "[\\u0027]" }
},
"search_api_stopwords" : {
"status" : 0,
"weight" : "30",
"settings" : {
"fields" : [],
"file" : "",
"stopwords" : "but\\r\\ndid\\r\\nthe this that those\\r\\netc"
}
}
},
"fields" : {
"nid" : { "type" : "integer" },
"vid" : { "type" : "integer" },
"type" : { "type" : "string" },
"url" : { "type" : "uri" },
"field_magnitude" : { "type" : "decimal" },
"field_felt" : { "type" : "integer" },
"field_cdi" : { "type" : "decimal" },
"field_epicenter_distance" : { "type" : "decimal" },
"search_api_language" : { "type" : "string" }
}
},
"enabled" : "1",
"read_only" : "0",
"rdf_mapping" : []
}');
return $items;
}