merged features sudmodule

This commit is contained in:
Bachir Soussi Chiadmi
2015-04-19 13:34:58 +02:00
60 changed files with 28092 additions and 0 deletions

View File

@@ -0,0 +1,706 @@
<?php
/**
* @file
* materio_search.features.inc
*/
/**
* Implements hook_ctools_plugin_api().
*/
function materio_search_ctools_plugin_api($module = NULL, $api = NULL) {
if ($module == "strongarm" && $api == "strongarm") {
return array("version" => "1");
}
}
/**
* Implements hook_default_search_api_index().
*/
function materio_search_default_search_api_index() {
$items = array();
$items['breves_en'] = entity_import('search_api_index', '{
"name" : "Breves EN",
"machine_name" : "breves_en",
"description" : null,
"server" : "materio_solr3_en",
"item_type" : "node",
"options" : {
"index_directly" : 0,
"cron_limit" : "50",
"entity_translation_language" : "en",
"fields" : {
"type" : { "type" : "string" },
"title" : { "type" : "text" },
"status" : { "type" : "boolean" },
"author" : { "type" : "integer", "entity_type" : "user" },
"title_field" : { "type" : "text" },
"search_api_language" : { "type" : "string" },
"search_api_access_node" : { "type" : "list\\u003Cstring\\u003E" },
"body:value" : { "type" : "text" },
"field_tags_libres:synonyms_synonym" : { "type" : "list\\u003Clist\\u003Ctext\\u003E\\u003E", "boost" : "5000" },
"field_tags_libres:name_field" : { "type" : "list\\u003Ctext\\u003E", "boost" : "5000" },
"field_onthologie:synonyms_synonym" : { "type" : "list\\u003Clist\\u003Ctext\\u003E\\u003E", "boost" : "10000" },
"field_onthologie:name_field" : { "type" : "list\\u003Ctext\\u003E", "boost" : "10000" }
},
"data_alter_callbacks" : {
"search_api_alter_bundle_filter" : {
"status" : 1,
"weight" : "-10",
"settings" : { "default" : "0", "bundles" : { "breve" : "breve" } }
},
"search_api_alter_node_access" : { "status" : 1, "weight" : "0", "settings" : [] },
"search_api_alter_node_status" : { "status" : 1, "weight" : "0", "settings" : [] },
"search_api_alter_language_control" : {
"status" : 1,
"weight" : "0",
"settings" : { "lang_field" : "", "languages" : { "und" : "und", "en" : "en" } }
},
"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" : [] },
"search_api_alter_add_hierarchy" : { "status" : 0, "weight" : "0", "settings" : { "fields" : [] } }
},
"processors" : {
"search_api_case_ignore" : {
"status" : 1,
"weight" : "0",
"settings" : { "fields" : { "title" : true, "title_field" : true } }
},
"search_api_html_filter" : {
"status" : 0,
"weight" : "10",
"settings" : {
"fields" : { "title" : true, "title_field" : 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" : { "title" : true, "title_field" : true },
"spaces" : "[^[:alnum:]]",
"ignorable" : "[\\u0027]"
}
},
"search_api_stopwords" : {
"status" : 0,
"weight" : "30",
"settings" : {
"fields" : { "title" : true, "title_field" : true },
"file" : "",
"stopwords" : "but\\r\\ndid\\r\\nthe this that those\\r\\netc"
}
}
}
},
"enabled" : "1",
"read_only" : "0"
}');
$items['breves_fr'] = entity_import('search_api_index', '{
"name" : "Breves FR",
"machine_name" : "breves_fr",
"description" : null,
"server" : "materio_solr3_fr",
"item_type" : "node",
"options" : {
"index_directly" : 0,
"cron_limit" : "50",
"entity_translation_language" : "fr",
"fields" : {
"type" : { "type" : "string" },
"title" : { "type" : "text" },
"status" : { "type" : "boolean" },
"author" : { "type" : "integer", "entity_type" : "user" },
"title_field" : { "type" : "text" },
"search_api_language" : { "type" : "string" },
"search_api_access_node" : { "type" : "list\\u003Cstring\\u003E" },
"body:value" : { "type" : "text" },
"field_tags_libres:synonyms_synonym" : { "type" : "list\\u003Clist\\u003Ctext\\u003E\\u003E", "boost" : "5000" },
"field_tags_libres:name_field" : { "type" : "list\\u003Ctext\\u003E", "boost" : "5000" },
"field_onthologie:synonyms_synonym" : { "type" : "list\\u003Clist\\u003Ctext\\u003E\\u003E", "boost" : "10000" },
"field_onthologie:name_field" : { "type" : "list\\u003Ctext\\u003E", "boost" : "10000" }
},
"data_alter_callbacks" : {
"search_api_alter_bundle_filter" : {
"status" : 1,
"weight" : "-10",
"settings" : { "default" : "0", "bundles" : { "breve" : "breve" } }
},
"search_api_alter_node_access" : { "status" : 1, "weight" : "0", "settings" : [] },
"search_api_alter_node_status" : { "status" : 1, "weight" : "0", "settings" : [] },
"search_api_alter_language_control" : {
"status" : 1,
"weight" : "0",
"settings" : { "lang_field" : "", "languages" : { "und" : "und", "fr" : "fr" } }
},
"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" : [] },
"search_api_alter_add_hierarchy" : { "status" : 0, "weight" : "0", "settings" : { "fields" : [] } }
},
"processors" : {
"search_api_case_ignore" : {
"status" : 1,
"weight" : "0",
"settings" : { "fields" : { "title" : true, "title_field" : true } }
},
"search_api_html_filter" : {
"status" : 0,
"weight" : "10",
"settings" : {
"fields" : { "title" : true, "title_field" : 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" : { "title" : true, "title_field" : true },
"spaces" : "[^[:alnum:]]",
"ignorable" : "[\\u0027]"
}
},
"search_api_stopwords" : {
"status" : 0,
"weight" : "30",
"settings" : {
"fields" : { "title" : true, "title_field" : true },
"file" : "",
"stopwords" : "but\\r\\ndid\\r\\nthe this that those\\r\\netc"
}
}
}
},
"enabled" : "1",
"read_only" : "0"
}');
$items['materiaux_breves'] = entity_import('search_api_index', '{
"name" : "Materiaux Breves",
"machine_name" : "materiaux_breves",
"description" : null,
"server" : null,
"item_type" : "node",
"options" : {
"index_directly" : 0,
"cron_limit" : "25",
"fields" : {
"type" : { "type" : "text", "boost" : "0.3" },
"title" : { "type" : "text" },
"status" : { "type" : "boolean" },
"author" : { "type" : "integer", "entity_type" : "user" },
"field_nature_titre" : { "type" : "text" },
"title_field" : { "type" : "text" },
"field_reference_materio" : { "type" : "text" },
"search_api_language" : { "type" : "string" },
"search_api_access_node" : { "type" : "list\\u003Cstring\\u003E" },
"field_description:value" : { "type" : "text", "boost" : "0.3" },
"field_tags_libres:name" : { "type" : "list\\u003Ctext\\u003E", "boost" : "2.0" },
"field_tags_libres:description" : { "type" : "list\\u003Ctext\\u003E", "boost" : "2.0" },
"field_tags_libres:synonyms_synonym" : { "type" : "list\\u003Clist\\u003Ctext\\u003E\\u003E", "boost" : "2.0" },
"field_onthologie:name" : { "type" : "list\\u003Ctext\\u003E", "boost" : "2.0" },
"field_onthologie:description" : { "type" : "list\\u003Ctext\\u003E", "boost" : "2.0" },
"field_onthologie:synonyms_synonym" : { "type" : "list\\u003Clist\\u003Ctext\\u003E\\u003E", "boost" : "2.0" },
"field_company_fab:name" : { "type" : "list\\u003Ctext\\u003E", "boost" : "0.3" },
"field_company_fab:description" : { "type" : "list\\u003Ctext\\u003E", "boost" : "0.3" },
"field_company_fab:synonyms_synonym" : { "type" : "list\\u003Clist\\u003Ctext\\u003E\\u003E", "boost" : "3.0" },
"field_company_distrib:name" : { "type" : "list\\u003Ctext\\u003E", "boost" : "0.3" },
"field_company_distrib:description" : { "type" : "list\\u003Ctext\\u003E", "boost" : "0.3" },
"field_company_distrib:synonyms_synonym" : { "type" : "list\\u003Clist\\u003Ctext\\u003E\\u003E", "boost" : "0.3" },
"field_materiau_ref:title" : { "type" : "list\\u003Ctext\\u003E", "boost" : "0.3" },
"field_materiau_ref:status" : { "type" : "list\\u003Cinteger\\u003E" },
"field_materiau_ref:field_tags_libres" : {
"type" : "list\\u003Clist\\u003Cinteger\\u003E\\u003E",
"entity_type" : "taxonomy_term"
},
"field_materiau_ref:field_onthologie" : {
"type" : "list\\u003Clist\\u003Cinteger\\u003E\\u003E",
"entity_type" : "taxonomy_term"
},
"field_infos_from_company:value" : { "type" : "text", "boost" : "0.3" }
},
"data_alter_callbacks" : {
"search_api_alter_bundle_filter" : {
"status" : 1,
"weight" : "-50",
"settings" : {
"default" : "0",
"bundles" : { "breve" : "breve", "materiau" : "materiau" }
}
},
"search_api_alter_node_access" : { "status" : 1, "weight" : "-49", "settings" : [] },
"search_api_alter_language_control" : {
"status" : 0,
"weight" : "-48",
"settings" : { "lang_field" : "", "languages" : [] }
},
"search_api_alter_add_hierarchy" : { "status" : 0, "weight" : "-47", "settings" : { "fields" : [] } },
"search_api_alter_add_viewed_entity" : { "status" : 0, "weight" : "-46", "settings" : { "mode" : "full" } },
"search_api_alter_add_url" : { "status" : 0, "weight" : "-45", "settings" : [] },
"search_api_alter_add_aggregation" : { "status" : 0, "weight" : "-44", "settings" : [] },
"search_api_alter_node_status" : { "status" : 0, "weight" : "-43", "settings" : [] }
},
"processors" : {
"search_api_case_ignore" : {
"status" : 1,
"weight" : "0",
"settings" : { "fields" : {
"title" : true,
"title_field" : true,
"field_reference_materio" : true,
"field_tags_libres:name" : true
}
}
},
"search_api_html_filter" : {
"status" : 1,
"weight" : "10",
"settings" : {
"fields" : { "title" : true, "title_field" : true, "field_reference_materio" : 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" : {
"title" : true,
"title_field" : true,
"field_reference_materio" : true,
"field_tags_libres:name" : true
},
"spaces" : "[^[:alnum:]]",
"ignorable" : "[\\u0027]"
}
},
"search_api_stopwords" : {
"status" : 0,
"weight" : "30",
"settings" : {
"fields" : {
"title" : true,
"title_field" : true,
"field_reference_materio" : true,
"field_tags_libres:name" : true
},
"file" : "",
"stopwords" : "but\\r\\ndid\\r\\nthe this that those\\r\\netc"
}
}
}
},
"enabled" : "0",
"read_only" : "0"
}');
$items['materiaux_breves_en'] = entity_import('search_api_index', '{
"name" : "Materiaux Breves EN",
"machine_name" : "materiaux_breves_en",
"description" : null,
"server" : "materio_solr3_en",
"item_type" : "node",
"options" : {
"index_directly" : 0,
"cron_limit" : "50",
"entity_translation_language" : "en",
"fields" : {
"nid" : { "type" : "integer" },
"type" : { "type" : "string" },
"status" : { "type" : "boolean" },
"author" : { "type" : "integer", "entity_type" : "user" },
"materio_search_api_onthologie_term_1_text" : { "type" : "text", "boost" : "13.0" },
"materio_search_api_onthologie_term_2_text" : { "type" : "text", "boost" : "8.0" },
"materio_search_api_onthologie_term_3_text" : { "type" : "text", "boost" : "5.0" },
"materio_search_api_onthologie_term_4_text" : { "type" : "text", "boost" : "3.0" },
"materio_search_api_onthologie_term_5_text" : { "type" : "text", "boost" : "2.0" },
"materio_search_api_onthologie_term_others_text" : { "type" : "list\\u003Ctext\\u003E" },
"materio_search_api_taglibres_text" : { "type" : "list\\u003Ctext\\u003E", "boost" : "100" },
"title_field" : { "type" : "text", "boost" : "3.0" },
"field_nature_titre" : { "type" : "text", "boost" : "0.3" },
"field_reference_materio" : { "type" : "text", "boost" : "0.3" },
"materio_search_api_node_propertie_companie" : { "type" : "list\\u003Ctext\\u003E" },
"search_api_language" : { "type" : "string" },
"search_api_access_node" : { "type" : "list\\u003Cstring\\u003E" },
"body:value" : { "type" : "text" },
"field_description:value" : { "type" : "text" }
},
"data_alter_callbacks" : {
"search_api_alter_bundle_filter" : {
"status" : 1,
"weight" : "-10",
"settings" : {
"default" : "0",
"bundles" : { "materiau" : "materiau", "breve" : "breve" }
}
},
"search_api_alter_node_access" : { "status" : 1, "weight" : "0", "settings" : [] },
"search_api_alter_node_status" : { "status" : 1, "weight" : "0", "settings" : [] },
"search_api_alter_language_control" : {
"status" : 1,
"weight" : "0",
"settings" : { "lang_field" : "", "languages" : { "und" : "und", "en" : "en" } }
},
"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" : [] },
"search_api_alter_add_hierarchy" : { "status" : 0, "weight" : "0", "settings" : { "fields" : [] } }
},
"processors" : {
"search_api_case_ignore" : { "status" : 1, "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"
}
}
}
},
"enabled" : "1",
"read_only" : "0"
}');
$items['materiaux_breves_fr'] = entity_import('search_api_index', '{
"name" : "Materiaux Breves FR",
"machine_name" : "materiaux_breves_fr",
"description" : null,
"server" : "materio_solr3_fr",
"item_type" : "node",
"options" : {
"index_directly" : 0,
"cron_limit" : "50",
"entity_translation_language" : "fr",
"fields" : {
"nid" : { "type" : "integer" },
"type" : { "type" : "string" },
"status" : { "type" : "boolean" },
"author" : { "type" : "integer", "entity_type" : "user" },
"materio_search_api_onthologie_term_1_text" : { "type" : "text", "boost" : "13.0" },
"materio_search_api_onthologie_term_2_text" : { "type" : "text", "boost" : "8.0" },
"materio_search_api_onthologie_term_3_text" : { "type" : "text", "boost" : "5.0" },
"materio_search_api_onthologie_term_4_text" : { "type" : "text", "boost" : "3.0" },
"materio_search_api_onthologie_term_5_text" : { "type" : "text", "boost" : "2.0" },
"materio_search_api_onthologie_term_others_text" : { "type" : "list\\u003Ctext\\u003E" },
"materio_search_api_taglibres_text" : { "type" : "list\\u003Ctext\\u003E", "boost" : "0.1" },
"title_field" : { "type" : "text", "boost" : "3.0" },
"field_nature_titre" : { "type" : "text", "boost" : "3.0" },
"field_reference_materio" : { "type" : "text", "boost" : "0.3" },
"materio_search_api_node_propertie_companie" : { "type" : "list\\u003Ctext\\u003E" },
"search_api_language" : { "type" : "string" },
"search_api_access_node" : { "type" : "list\\u003Cstring\\u003E" },
"body:value" : { "type" : "text" },
"field_description:value" : { "type" : "text" }
},
"data_alter_callbacks" : {
"search_api_alter_bundle_filter" : {
"status" : 1,
"weight" : "-10",
"settings" : {
"default" : "0",
"bundles" : { "breve" : "breve", "materiau" : "materiau" }
}
},
"search_api_alter_node_access" : { "status" : 1, "weight" : "0", "settings" : [] },
"search_api_alter_node_status" : { "status" : 1, "weight" : "0", "settings" : [] },
"search_api_alter_language_control" : {
"status" : 1,
"weight" : "0",
"settings" : { "lang_field" : "", "languages" : { "und" : "und", "fr" : "fr" } }
},
"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" : [] },
"search_api_alter_add_hierarchy" : { "status" : 0, "weight" : "0", "settings" : { "fields" : [] } }
},
"processors" : {
"search_api_case_ignore" : {
"status" : 1,
"weight" : "0",
"settings" : { "fields" : { "title_field" : true, "field_reference_materio" : true } }
},
"search_api_html_filter" : {
"status" : 0,
"weight" : "10",
"settings" : {
"fields" : { "title_field" : true, "field_reference_materio" : 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" : { "title_field" : true, "field_reference_materio" : true },
"spaces" : "[^[:alnum:]]",
"ignorable" : "[\\u0027]"
}
},
"search_api_stopwords" : {
"status" : 0,
"weight" : "30",
"settings" : {
"fields" : { "title_field" : true, "field_reference_materio" : true },
"file" : "",
"stopwords" : "but\\r\\ndid\\r\\nthe this that those\\r\\netc"
}
}
}
},
"enabled" : "1",
"read_only" : "0"
}');
$items['referencement'] = entity_import('search_api_index', '{
"name" : "R\\u00e9f\\u00e9rencement",
"machine_name" : "referencement",
"description" : null,
"server" : null,
"item_type" : "taxonomy_term",
"options" : {
"index_directly" : 0,
"cron_limit" : "1000",
"fields" : {
"description" : { "type" : "text" },
"synonyms_synonym" : { "type" : "list\\u003Ctext\\u003E" },
"name_field" : { "type" : "text" },
"search_api_language" : { "type" : "string" }
},
"data_alter_callbacks" : {
"search_api_alter_bundle_filter" : {
"status" : 1,
"weight" : "-10",
"settings" : {
"default" : "0",
"bundles" : { "onthologie" : "onthologie", "tag_libres" : "tag_libres" }
}
},
"search_api_alter_language_control" : {
"status" : 0,
"weight" : "0",
"settings" : { "lang_field" : "", "languages" : [] }
},
"search_api_alter_add_hierarchy" : { "status" : 0, "weight" : "0", "settings" : { "fields" : [] } },
"search_api_alter_add_aggregation" : { "status" : 1, "weight" : "0", "settings" : [] },
"search_api_alter_add_url" : { "status" : 0, "weight" : "0", "settings" : [] },
"search_api_alter_add_viewed_entity" : { "status" : 0, "weight" : "0", "settings" : { "mode" : "full" } }
},
"processors" : {
"search_api_case_ignore" : {
"status" : 1,
"weight" : "0",
"settings" : { "fields" : { "name" : true, "parent" : true, "synonyms_synonym" : true } }
},
"search_api_html_filter" : {
"status" : 0,
"weight" : "10",
"settings" : {
"fields" : { "name" : true, "synonyms_synonym" : true, "vocabulary: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, "synonyms_synonym" : true, "vocabulary:name" : true },
"spaces" : "[^[:alnum:]]",
"ignorable" : "[\\u0027]"
}
},
"search_api_stopwords" : {
"status" : 0,
"weight" : "30",
"settings" : {
"fields" : { "name" : true, "synonyms_synonym" : true, "vocabulary:name" : true },
"file" : "",
"stopwords" : "but\\r\\ndid\\r\\nthe this that those\\r\\netc"
}
}
}
},
"enabled" : "0",
"read_only" : "0"
}');
$items['referencement_en'] = entity_import('search_api_index', '{
"name" : "r\\u00e9f\\u00e9rencement en",
"machine_name" : "referencement_en",
"description" : null,
"server" : "materio_solr3_en",
"item_type" : "taxonomy_term",
"options" : {
"index_directly" : 0,
"cron_limit" : "50",
"entity_translation_language" : "en",
"fields" : {
"description" : { "type" : "text", "boost" : "0.3" },
"synonyms_synonym" : {
"type" : "list\\u003Ctext\\u003E",
"real_type" : "list\\u003Cedge_n2_kw_text\\u003E"
},
"name_field" : { "type" : "text", "real_type" : "edge_n2_kw_text" },
"search_api_language" : { "type" : "string" }
},
"data_alter_callbacks" : {
"search_api_alter_bundle_filter" : {
"status" : 1,
"weight" : "-10",
"settings" : {
"default" : "0",
"bundles" : { "onthologie" : "onthologie", "tag_libres" : "tag_libres" }
}
},
"search_api_alter_language_control" : {
"status" : 1,
"weight" : "0",
"settings" : { "lang_field" : "", "languages" : { "und" : "und", "en" : "en" } }
},
"search_api_alter_add_hierarchy" : { "status" : 0, "weight" : "0", "settings" : { "fields" : [] } },
"search_api_alter_add_aggregation" : { "status" : 0, "weight" : "0", "settings" : [] },
"search_api_alter_add_url" : { "status" : 0, "weight" : "0", "settings" : [] },
"search_api_alter_add_viewed_entity" : { "status" : 0, "weight" : "0", "settings" : { "mode" : "full" } }
},
"processors" : {
"search_api_case_ignore" : {
"status" : 1,
"weight" : "0",
"settings" : { "fields" : { "description" : true, "synonyms_synonym" : true, "name_field" : true } }
},
"search_api_html_filter" : {
"status" : 0,
"weight" : "10",
"settings" : {
"fields" : { "description" : true, "synonyms_synonym" : true, "name_field" : 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" : { "description" : true, "synonyms_synonym" : true, "name_field" : true },
"spaces" : "[^[:alnum:]]",
"ignorable" : "[\\u0027]"
}
},
"search_api_stopwords" : {
"status" : 0,
"weight" : "30",
"settings" : {
"fields" : { "description" : true, "synonyms_synonym" : true, "name_field" : true },
"file" : "",
"stopwords" : "but\\r\\ndid\\r\\nthe this that those\\r\\netc"
}
}
}
},
"enabled" : "1",
"read_only" : "0"
}');
$items['referencement_fr'] = entity_import('search_api_index', '{
"name" : "r\\u00e9f\\u00e9rencement fr",
"machine_name" : "referencement_fr",
"description" : null,
"server" : "materio_solr3_fr",
"item_type" : "taxonomy_term",
"options" : {
"index_directly" : 0,
"cron_limit" : "50",
"entity_translation_language" : "fr",
"fields" : {
"description" : { "type" : "text", "boost" : "0.3" },
"materio_search_api_term_property_dup_name" : { "type" : "text", "real_type" : "edge_n2_kw_mapped_text" },
"synonyms_synonym" : {
"type" : "list\\u003Ctext\\u003E",
"real_type" : "list\\u003Cedge_n2_kw_text\\u003E"
},
"name_field" : { "type" : "text", "real_type" : "edge_n2_kw_text" },
"search_api_language" : { "type" : "string" }
},
"data_alter_callbacks" : {
"search_api_alter_bundle_filter" : {
"status" : 1,
"weight" : "-10",
"settings" : {
"default" : "0",
"bundles" : { "onthologie" : "onthologie", "tag_libres" : "tag_libres" }
}
},
"search_api_alter_language_control" : {
"status" : 1,
"weight" : "0",
"settings" : { "lang_field" : "", "languages" : { "und" : "und", "fr" : "fr" } }
},
"search_api_alter_add_hierarchy" : { "status" : 0, "weight" : "0", "settings" : { "fields" : [] } },
"search_api_alter_add_aggregation" : { "status" : 0, "weight" : "0", "settings" : [] },
"search_api_alter_add_url" : { "status" : 0, "weight" : "0", "settings" : [] },
"search_api_alter_add_viewed_entity" : { "status" : 0, "weight" : "0", "settings" : { "mode" : "full" } }
},
"processors" : {
"search_api_case_ignore" : {
"status" : 1,
"weight" : "0",
"settings" : { "fields" : { "description" : true, "synonyms_synonym" : true, "name_field" : true } }
},
"search_api_html_filter" : {
"status" : 0,
"weight" : "10",
"settings" : {
"fields" : { "description" : true, "synonyms_synonym" : true, "name_field" : 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" : { "description" : true, "synonyms_synonym" : true, "name_field" : true },
"spaces" : "[^[:alnum:]]",
"ignorable" : "[\\u0027]"
}
},
"search_api_stopwords" : {
"status" : 0,
"weight" : "30",
"settings" : {
"fields" : { "description" : true, "synonyms_synonym" : true, "name_field" : true },
"file" : "",
"stopwords" : "but\\r\\ndid\\r\\nthe this that those\\r\\netc"
}
}
}
},
"enabled" : "1",
"read_only" : "0"
}');
return $items;
}

View File

@@ -0,0 +1,164 @@
<?php
/**
* @file
* materio_search.features.user_permission.inc
*/
/**
* Implements hook_user_default_permissions().
*/
function materio_search_user_default_permissions() {
$permissions = array();
// Exported permission: 'administer materio_search_api'.
$permissions['administer materio_search_api'] = array(
'name' => 'administer materio_search_api',
'roles' => array(
'root' => 'root',
),
'module' => 'materio_search_api',
);
// Exported permission: 'administer search_api'.
$permissions['administer search_api'] = array(
'name' => 'administer search_api',
'roles' => array(
'root' => 'root',
),
'module' => 'search_api',
);
// Exported permission: 'administer search_api_saved_searches'.
$permissions['administer search_api_saved_searches'] = array(
'name' => 'administer search_api_saved_searches',
'roles' => array(
'root' => 'root',
),
'module' => 'search_api_saved_searches',
);
// Exported permission: 'create field_used_on_advanced_search'.
$permissions['create field_used_on_advanced_search'] = array(
'name' => 'create field_used_on_advanced_search',
'roles' => array(
'administrator' => 'administrator',
'root' => 'root',
),
'module' => 'field_permissions',
);
// Exported permission: 'edit field_used_on_advanced_search'.
$permissions['edit field_used_on_advanced_search'] = array(
'name' => 'edit field_used_on_advanced_search',
'roles' => array(
'administrator' => 'administrator',
'root' => 'root',
),
'module' => 'field_permissions',
);
// Exported permission: 'edit own field_used_on_advanced_search'.
$permissions['edit own field_used_on_advanced_search'] = array(
'name' => 'edit own field_used_on_advanced_search',
'roles' => array(
'administrator' => 'administrator',
'root' => 'root',
),
'module' => 'field_permissions',
);
// Exported permission: 'use materio search api'.
$permissions['use materio search api'] = array(
'name' => 'use materio search api',
'roles' => array(
'Adhérent' => 'Adhérent',
'Premium' => 'Premium',
'Student' => 'Student',
'administrator' => 'administrator',
'root' => 'root',
),
'module' => 'materio_search_api',
);
// Exported permission: 'use materio search api autocomplete'.
$permissions['use materio search api autocomplete'] = array(
'name' => 'use materio search api autocomplete',
'roles' => array(
'Adhérent' => 'Adhérent',
'Premium' => 'Premium',
'Student' => 'Student',
'administrator' => 'administrator',
'root' => 'root',
),
'module' => 'materio_search_api',
);
// Exported permission: 'use materio search api filters'.
$permissions['use materio search api filters'] = array(
'name' => 'use materio search api filters',
'roles' => array(
'Adhérent' => 'Adhérent',
'Premium' => 'Premium',
'Student' => 'Student',
'administrator' => 'administrator',
'root' => 'root',
),
'module' => 'materio_search_api',
);
// Exported permission: 'use materio search api for breves'.
$permissions['use materio search api for breves'] = array(
'name' => 'use materio search api for breves',
'roles' => array(
'Unverified' => 'Unverified',
'Utilisateur' => 'Utilisateur',
),
'module' => 'materio_search_api',
);
// Exported permission: 'use materio search api viewmode selection'.
$permissions['use materio search api viewmode selection'] = array(
'name' => 'use materio search api viewmode selection',
'roles' => array(
'Adhérent' => 'Adhérent',
'Premium' => 'Premium',
'Student' => 'Student',
'Unverified' => 'Unverified',
'Utilisateur' => 'Utilisateur',
'administrator' => 'administrator',
'root' => 'root',
),
'module' => 'materio_search_api',
);
// Exported permission: 'use search_api_saved_searches'.
$permissions['use search_api_saved_searches'] = array(
'name' => 'use search_api_saved_searches',
'roles' => array(
'root' => 'root',
),
'module' => 'search_api_saved_searches',
);
// Exported permission: 'view field_used_on_advanced_search'.
$permissions['view field_used_on_advanced_search'] = array(
'name' => 'view field_used_on_advanced_search',
'roles' => array(
'administrator' => 'administrator',
'root' => 'root',
),
'module' => 'field_permissions',
);
// Exported permission: 'view own field_used_on_advanced_search'.
$permissions['view own field_used_on_advanced_search'] = array(
'name' => 'view own field_used_on_advanced_search',
'roles' => array(
'administrator' => 'administrator',
'root' => 'root',
),
'module' => 'field_permissions',
);
return $permissions;
}

View File

@@ -0,0 +1,53 @@
name = Materio Search
core = 7.x
package = Materio
dependencies[] = ctools
dependencies[] = entity
dependencies[] = entity_translation_search_api
dependencies[] = features
dependencies[] = field_permissions
dependencies[] = materio_search_api
dependencies[] = materio_search_api_ajax
dependencies[] = rules
dependencies[] = search_api
dependencies[] = search_api_saved_searches
dependencies[] = search_api_solr
dependencies[] = strongarm
dependencies[] = taxonomy
features[ctools][] = strongarm:strongarm:1
features[features_api][] = api:2
features[rules_config][] = rules_update_node_on_term_save
features[search_api_index][] = breves_en
features[search_api_index][] = breves_fr
features[search_api_index][] = materiaux_breves
features[search_api_index][] = materiaux_breves_en
features[search_api_index][] = materiaux_breves_fr
features[search_api_index][] = referencement
features[search_api_index][] = referencement_en
features[search_api_index][] = referencement_fr
features[user_permission][] = administer materio_search_api
features[user_permission][] = administer search_api
features[user_permission][] = administer search_api_saved_searches
features[user_permission][] = create field_used_on_advanced_search
features[user_permission][] = edit field_used_on_advanced_search
features[user_permission][] = edit own field_used_on_advanced_search
features[user_permission][] = use materio search api
features[user_permission][] = use materio search api autocomplete
features[user_permission][] = use materio search api filters
features[user_permission][] = use materio search api for breves
features[user_permission][] = use materio search api viewmode selection
features[user_permission][] = use search_api_saved_searches
features[user_permission][] = view field_used_on_advanced_search
features[user_permission][] = view own field_used_on_advanced_search
features[variable][] = advancedsearchindex_en
features[variable][] = advancedsearchindex_fr
features[variable][] = advancedsearchvocs
features[variable][] = autocompletesearchindex
features[variable][] = autocompletesearchindex_en
features[variable][] = autocompletesearchindex_fr
features[variable][] = brevessearchindex_en
features[variable][] = brevessearchindex_fr
features[variable][] = googleanalytics_site_search
features[variable][] = mainsearchindex
features[variable][] = mainsearchindex_en
project path = sites/all/modules/features

View File

@@ -0,0 +1,7 @@
<?php
/**
* @file
* Code for the Materio Search feature.
*/
include_once 'materio_search.features.inc';

View File

@@ -0,0 +1,52 @@
<?php
/**
* @file
* materio_search.rules_defaults.inc
*/
/**
* Implements hook_default_rules_configuration().
*/
function materio_search_default_rules_configuration() {
$items = array();
$items['rules_update_node_on_term_save'] = entity_import('rules_config', '{ "rules_update_node_on_term_save" : {
"LABEL" : "update search_api indexes on term save",
"PLUGIN" : "reaction rule",
"TAGS" : [ "search api" ],
"REQUIRES" : [ "rules", "search_api", "taxonomy" ],
"ON" : [ "taxonomy_term_update" ],
"DO" : [
{ "entity_query" : {
"USING" : {
"type" : "node",
"property" : "field_onthologie",
"value" : [ "term" ],
"limit" : "9999999"
},
"PROVIDE" : { "entity_fetched" : { "nodes_to_index" : "Les noeuds \\u00e0 indexer" } }
}
},
{ "LOOP" : {
"USING" : { "list" : [ "nodes-to-index" ] },
"ITEM" : { "node_to_index" : "node a indexer depuis la liste" },
"DO" : [
{ "search_api_index" : {
"entity" : [ "node-to-index" ],
"index" : "materiaux_breves",
"index_immediately" : 0
}
}
]
}
},
{ "search_api_index" : {
"entity" : [ "term" ],
"index" : "referencement",
"index_immediately" : 0
}
}
]
}
}');
return $items;
}

View File

@@ -0,0 +1,93 @@
<?php
/**
* @file
* materio_search.strongarm.inc
*/
/**
* Implements hook_strongarm().
*/
function materio_search_strongarm() {
$export = array();
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'advancedsearchindex_en';
$strongarm->value = 'ontologie_en';
$export['advancedsearchindex_en'] = $strongarm;
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'advancedsearchindex_fr';
$strongarm->value = 'onthologie_fr';
$export['advancedsearchindex_fr'] = $strongarm;
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'advancedsearchvocs';
$strongarm->value = array(
15 => '15',
);
$export['advancedsearchvocs'] = $strongarm;
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'autocompletesearchindex';
$strongarm->value = 'referencement';
$export['autocompletesearchindex'] = $strongarm;
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'autocompletesearchindex_en';
$strongarm->value = 'referencement_en';
$export['autocompletesearchindex_en'] = $strongarm;
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'autocompletesearchindex_fr';
$strongarm->value = 'referencement_fr';
$export['autocompletesearchindex_fr'] = $strongarm;
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'brevessearchindex_en';
$strongarm->value = 'breves_en';
$export['brevessearchindex_en'] = $strongarm;
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'brevessearchindex_fr';
$strongarm->value = 'breves_fr';
$export['brevessearchindex_fr'] = $strongarm;
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'googleanalytics_site_search';
$strongarm->value = FALSE;
$export['googleanalytics_site_search'] = $strongarm;
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'mainsearchindex';
$strongarm->value = 'materiaux_breves';
$export['mainsearchindex'] = $strongarm;
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'mainsearchindex_en';
$strongarm->value = 'materiaux_breves_en';
$export['mainsearchindex_en'] = $strongarm;
return $export;
}