materio_search.features.inc 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706
  1. <?php
  2. /**
  3. * @file
  4. * materio_search.features.inc
  5. */
  6. /**
  7. * Implements hook_ctools_plugin_api().
  8. */
  9. function materio_search_ctools_plugin_api($module = NULL, $api = NULL) {
  10. if ($module == "strongarm" && $api == "strongarm") {
  11. return array("version" => "1");
  12. }
  13. }
  14. /**
  15. * Implements hook_default_search_api_index().
  16. */
  17. function materio_search_default_search_api_index() {
  18. $items = array();
  19. $items['breves_en'] = entity_import('search_api_index', '{
  20. "name" : "Breves EN",
  21. "machine_name" : "breves_en",
  22. "description" : null,
  23. "server" : "materio_solr3_en",
  24. "item_type" : "node",
  25. "options" : {
  26. "index_directly" : 0,
  27. "cron_limit" : "50",
  28. "entity_translation_language" : "en",
  29. "fields" : {
  30. "type" : { "type" : "string" },
  31. "title" : { "type" : "text" },
  32. "status" : { "type" : "boolean" },
  33. "author" : { "type" : "integer", "entity_type" : "user" },
  34. "title_field" : { "type" : "text" },
  35. "search_api_language" : { "type" : "string" },
  36. "search_api_access_node" : { "type" : "list\\u003Cstring\\u003E" },
  37. "body:value" : { "type" : "text" },
  38. "field_tags_libres:synonyms_synonym" : { "type" : "list\\u003Clist\\u003Ctext\\u003E\\u003E", "boost" : "5000" },
  39. "field_tags_libres:name_field" : { "type" : "list\\u003Ctext\\u003E", "boost" : "5000" },
  40. "field_onthologie:synonyms_synonym" : { "type" : "list\\u003Clist\\u003Ctext\\u003E\\u003E", "boost" : "10000" },
  41. "field_onthologie:name_field" : { "type" : "list\\u003Ctext\\u003E", "boost" : "10000" }
  42. },
  43. "data_alter_callbacks" : {
  44. "search_api_alter_bundle_filter" : {
  45. "status" : 1,
  46. "weight" : "-10",
  47. "settings" : { "default" : "0", "bundles" : { "breve" : "breve" } }
  48. },
  49. "search_api_alter_node_access" : { "status" : 1, "weight" : "0", "settings" : [] },
  50. "search_api_alter_node_status" : { "status" : 1, "weight" : "0", "settings" : [] },
  51. "search_api_alter_language_control" : {
  52. "status" : 1,
  53. "weight" : "0",
  54. "settings" : { "lang_field" : "", "languages" : { "und" : "und", "en" : "en" } }
  55. },
  56. "search_api_alter_add_viewed_entity" : { "status" : 0, "weight" : "0", "settings" : { "mode" : "full" } },
  57. "search_api_alter_add_url" : { "status" : 0, "weight" : "0", "settings" : [] },
  58. "search_api_alter_add_aggregation" : { "status" : 0, "weight" : "0", "settings" : [] },
  59. "search_api_alter_add_hierarchy" : { "status" : 0, "weight" : "0", "settings" : { "fields" : [] } }
  60. },
  61. "processors" : {
  62. "search_api_case_ignore" : {
  63. "status" : 1,
  64. "weight" : "0",
  65. "settings" : { "fields" : { "title" : true, "title_field" : true } }
  66. },
  67. "search_api_html_filter" : {
  68. "status" : 0,
  69. "weight" : "10",
  70. "settings" : {
  71. "fields" : { "title" : true, "title_field" : true },
  72. "title" : 0,
  73. "alt" : 1,
  74. "tags" : "h1 = 5\\r\\nh2 = 3\\r\\nh3 = 2\\r\\nstrong = 2\\r\\nb = 2\\r\\nem = 1.5\\r\\nu = 1.5"
  75. }
  76. },
  77. "search_api_tokenizer" : {
  78. "status" : 0,
  79. "weight" : "20",
  80. "settings" : {
  81. "fields" : { "title" : true, "title_field" : true },
  82. "spaces" : "[^[:alnum:]]",
  83. "ignorable" : "[\\u0027]"
  84. }
  85. },
  86. "search_api_stopwords" : {
  87. "status" : 0,
  88. "weight" : "30",
  89. "settings" : {
  90. "fields" : { "title" : true, "title_field" : true },
  91. "file" : "",
  92. "stopwords" : "but\\r\\ndid\\r\\nthe this that those\\r\\netc"
  93. }
  94. }
  95. }
  96. },
  97. "enabled" : "1",
  98. "read_only" : "0"
  99. }');
  100. $items['breves_fr'] = entity_import('search_api_index', '{
  101. "name" : "Breves FR",
  102. "machine_name" : "breves_fr",
  103. "description" : null,
  104. "server" : "materio_solr3_fr",
  105. "item_type" : "node",
  106. "options" : {
  107. "index_directly" : 0,
  108. "cron_limit" : "50",
  109. "entity_translation_language" : "fr",
  110. "fields" : {
  111. "type" : { "type" : "string" },
  112. "title" : { "type" : "text" },
  113. "status" : { "type" : "boolean" },
  114. "author" : { "type" : "integer", "entity_type" : "user" },
  115. "title_field" : { "type" : "text" },
  116. "search_api_language" : { "type" : "string" },
  117. "search_api_access_node" : { "type" : "list\\u003Cstring\\u003E" },
  118. "body:value" : { "type" : "text" },
  119. "field_tags_libres:synonyms_synonym" : { "type" : "list\\u003Clist\\u003Ctext\\u003E\\u003E", "boost" : "5000" },
  120. "field_tags_libres:name_field" : { "type" : "list\\u003Ctext\\u003E", "boost" : "5000" },
  121. "field_onthologie:synonyms_synonym" : { "type" : "list\\u003Clist\\u003Ctext\\u003E\\u003E", "boost" : "10000" },
  122. "field_onthologie:name_field" : { "type" : "list\\u003Ctext\\u003E", "boost" : "10000" }
  123. },
  124. "data_alter_callbacks" : {
  125. "search_api_alter_bundle_filter" : {
  126. "status" : 1,
  127. "weight" : "-10",
  128. "settings" : { "default" : "0", "bundles" : { "breve" : "breve" } }
  129. },
  130. "search_api_alter_node_access" : { "status" : 1, "weight" : "0", "settings" : [] },
  131. "search_api_alter_node_status" : { "status" : 1, "weight" : "0", "settings" : [] },
  132. "search_api_alter_language_control" : {
  133. "status" : 1,
  134. "weight" : "0",
  135. "settings" : { "lang_field" : "", "languages" : { "und" : "und", "fr" : "fr" } }
  136. },
  137. "search_api_alter_add_viewed_entity" : { "status" : 0, "weight" : "0", "settings" : { "mode" : "full" } },
  138. "search_api_alter_add_url" : { "status" : 0, "weight" : "0", "settings" : [] },
  139. "search_api_alter_add_aggregation" : { "status" : 0, "weight" : "0", "settings" : [] },
  140. "search_api_alter_add_hierarchy" : { "status" : 0, "weight" : "0", "settings" : { "fields" : [] } }
  141. },
  142. "processors" : {
  143. "search_api_case_ignore" : {
  144. "status" : 1,
  145. "weight" : "0",
  146. "settings" : { "fields" : { "title" : true, "title_field" : true } }
  147. },
  148. "search_api_html_filter" : {
  149. "status" : 0,
  150. "weight" : "10",
  151. "settings" : {
  152. "fields" : { "title" : true, "title_field" : true },
  153. "title" : 0,
  154. "alt" : 1,
  155. "tags" : "h1 = 5\\r\\nh2 = 3\\r\\nh3 = 2\\r\\nstrong = 2\\r\\nb = 2\\r\\nem = 1.5\\r\\nu = 1.5"
  156. }
  157. },
  158. "search_api_tokenizer" : {
  159. "status" : 0,
  160. "weight" : "20",
  161. "settings" : {
  162. "fields" : { "title" : true, "title_field" : true },
  163. "spaces" : "[^[:alnum:]]",
  164. "ignorable" : "[\\u0027]"
  165. }
  166. },
  167. "search_api_stopwords" : {
  168. "status" : 0,
  169. "weight" : "30",
  170. "settings" : {
  171. "fields" : { "title" : true, "title_field" : true },
  172. "file" : "",
  173. "stopwords" : "but\\r\\ndid\\r\\nthe this that those\\r\\netc"
  174. }
  175. }
  176. }
  177. },
  178. "enabled" : "1",
  179. "read_only" : "0"
  180. }');
  181. $items['materiaux_breves'] = entity_import('search_api_index', '{
  182. "name" : "Materiaux Breves",
  183. "machine_name" : "materiaux_breves",
  184. "description" : null,
  185. "server" : null,
  186. "item_type" : "node",
  187. "options" : {
  188. "index_directly" : 0,
  189. "cron_limit" : "25",
  190. "fields" : {
  191. "type" : { "type" : "text", "boost" : "0.3" },
  192. "title" : { "type" : "text" },
  193. "status" : { "type" : "boolean" },
  194. "author" : { "type" : "integer", "entity_type" : "user" },
  195. "field_nature_titre" : { "type" : "text" },
  196. "title_field" : { "type" : "text" },
  197. "field_reference_materio" : { "type" : "text" },
  198. "search_api_language" : { "type" : "string" },
  199. "search_api_access_node" : { "type" : "list\\u003Cstring\\u003E" },
  200. "field_description:value" : { "type" : "text", "boost" : "0.3" },
  201. "field_tags_libres:name" : { "type" : "list\\u003Ctext\\u003E", "boost" : "2.0" },
  202. "field_tags_libres:description" : { "type" : "list\\u003Ctext\\u003E", "boost" : "2.0" },
  203. "field_tags_libres:synonyms_synonym" : { "type" : "list\\u003Clist\\u003Ctext\\u003E\\u003E", "boost" : "2.0" },
  204. "field_onthologie:name" : { "type" : "list\\u003Ctext\\u003E", "boost" : "2.0" },
  205. "field_onthologie:description" : { "type" : "list\\u003Ctext\\u003E", "boost" : "2.0" },
  206. "field_onthologie:synonyms_synonym" : { "type" : "list\\u003Clist\\u003Ctext\\u003E\\u003E", "boost" : "2.0" },
  207. "field_company_fab:name" : { "type" : "list\\u003Ctext\\u003E", "boost" : "0.3" },
  208. "field_company_fab:description" : { "type" : "list\\u003Ctext\\u003E", "boost" : "0.3" },
  209. "field_company_fab:synonyms_synonym" : { "type" : "list\\u003Clist\\u003Ctext\\u003E\\u003E", "boost" : "3.0" },
  210. "field_company_distrib:name" : { "type" : "list\\u003Ctext\\u003E", "boost" : "0.3" },
  211. "field_company_distrib:description" : { "type" : "list\\u003Ctext\\u003E", "boost" : "0.3" },
  212. "field_company_distrib:synonyms_synonym" : { "type" : "list\\u003Clist\\u003Ctext\\u003E\\u003E", "boost" : "0.3" },
  213. "field_materiau_ref:title" : { "type" : "list\\u003Ctext\\u003E", "boost" : "0.3" },
  214. "field_materiau_ref:status" : { "type" : "list\\u003Cinteger\\u003E" },
  215. "field_materiau_ref:field_tags_libres" : {
  216. "type" : "list\\u003Clist\\u003Cinteger\\u003E\\u003E",
  217. "entity_type" : "taxonomy_term"
  218. },
  219. "field_materiau_ref:field_onthologie" : {
  220. "type" : "list\\u003Clist\\u003Cinteger\\u003E\\u003E",
  221. "entity_type" : "taxonomy_term"
  222. },
  223. "field_infos_from_company:value" : { "type" : "text", "boost" : "0.3" }
  224. },
  225. "data_alter_callbacks" : {
  226. "search_api_alter_bundle_filter" : {
  227. "status" : 1,
  228. "weight" : "-50",
  229. "settings" : {
  230. "default" : "0",
  231. "bundles" : { "breve" : "breve", "materiau" : "materiau" }
  232. }
  233. },
  234. "search_api_alter_node_access" : { "status" : 1, "weight" : "-49", "settings" : [] },
  235. "search_api_alter_language_control" : {
  236. "status" : 0,
  237. "weight" : "-48",
  238. "settings" : { "lang_field" : "", "languages" : [] }
  239. },
  240. "search_api_alter_add_hierarchy" : { "status" : 0, "weight" : "-47", "settings" : { "fields" : [] } },
  241. "search_api_alter_add_viewed_entity" : { "status" : 0, "weight" : "-46", "settings" : { "mode" : "full" } },
  242. "search_api_alter_add_url" : { "status" : 0, "weight" : "-45", "settings" : [] },
  243. "search_api_alter_add_aggregation" : { "status" : 0, "weight" : "-44", "settings" : [] },
  244. "search_api_alter_node_status" : { "status" : 0, "weight" : "-43", "settings" : [] }
  245. },
  246. "processors" : {
  247. "search_api_case_ignore" : {
  248. "status" : 1,
  249. "weight" : "0",
  250. "settings" : { "fields" : {
  251. "title" : true,
  252. "title_field" : true,
  253. "field_reference_materio" : true,
  254. "field_tags_libres:name" : true
  255. }
  256. }
  257. },
  258. "search_api_html_filter" : {
  259. "status" : 1,
  260. "weight" : "10",
  261. "settings" : {
  262. "fields" : { "title" : true, "title_field" : true, "field_reference_materio" : true },
  263. "title" : 0,
  264. "alt" : 1,
  265. "tags" : "h1 = 5\\r\\nh2 = 3\\r\\nh3 = 2\\r\\nstrong = 2\\r\\nb = 2\\r\\nem = 1.5\\r\\nu = 1.5"
  266. }
  267. },
  268. "search_api_tokenizer" : {
  269. "status" : 0,
  270. "weight" : "20",
  271. "settings" : {
  272. "fields" : {
  273. "title" : true,
  274. "title_field" : true,
  275. "field_reference_materio" : true,
  276. "field_tags_libres:name" : true
  277. },
  278. "spaces" : "[^[:alnum:]]",
  279. "ignorable" : "[\\u0027]"
  280. }
  281. },
  282. "search_api_stopwords" : {
  283. "status" : 0,
  284. "weight" : "30",
  285. "settings" : {
  286. "fields" : {
  287. "title" : true,
  288. "title_field" : true,
  289. "field_reference_materio" : true,
  290. "field_tags_libres:name" : true
  291. },
  292. "file" : "",
  293. "stopwords" : "but\\r\\ndid\\r\\nthe this that those\\r\\netc"
  294. }
  295. }
  296. }
  297. },
  298. "enabled" : "0",
  299. "read_only" : "0"
  300. }');
  301. $items['materiaux_breves_en'] = entity_import('search_api_index', '{
  302. "name" : "Materiaux Breves EN",
  303. "machine_name" : "materiaux_breves_en",
  304. "description" : null,
  305. "server" : "materio_solr3_en",
  306. "item_type" : "node",
  307. "options" : {
  308. "index_directly" : 0,
  309. "cron_limit" : "50",
  310. "entity_translation_language" : "en",
  311. "fields" : {
  312. "nid" : { "type" : "integer" },
  313. "type" : { "type" : "string" },
  314. "status" : { "type" : "boolean" },
  315. "author" : { "type" : "integer", "entity_type" : "user" },
  316. "materio_search_api_onthologie_term_1_text" : { "type" : "text", "boost" : "13.0" },
  317. "materio_search_api_onthologie_term_2_text" : { "type" : "text", "boost" : "8.0" },
  318. "materio_search_api_onthologie_term_3_text" : { "type" : "text", "boost" : "5.0" },
  319. "materio_search_api_onthologie_term_4_text" : { "type" : "text", "boost" : "3.0" },
  320. "materio_search_api_onthologie_term_5_text" : { "type" : "text", "boost" : "2.0" },
  321. "materio_search_api_onthologie_term_others_text" : { "type" : "list\\u003Ctext\\u003E" },
  322. "materio_search_api_taglibres_text" : { "type" : "list\\u003Ctext\\u003E", "boost" : "100" },
  323. "title_field" : { "type" : "text", "boost" : "3.0" },
  324. "field_nature_titre" : { "type" : "text", "boost" : "0.3" },
  325. "field_reference_materio" : { "type" : "text", "boost" : "0.3" },
  326. "materio_search_api_node_propertie_companie" : { "type" : "list\\u003Ctext\\u003E" },
  327. "search_api_language" : { "type" : "string" },
  328. "search_api_access_node" : { "type" : "list\\u003Cstring\\u003E" },
  329. "body:value" : { "type" : "text" },
  330. "field_description:value" : { "type" : "text" }
  331. },
  332. "data_alter_callbacks" : {
  333. "search_api_alter_bundle_filter" : {
  334. "status" : 1,
  335. "weight" : "-10",
  336. "settings" : {
  337. "default" : "0",
  338. "bundles" : { "materiau" : "materiau", "breve" : "breve" }
  339. }
  340. },
  341. "search_api_alter_node_access" : { "status" : 1, "weight" : "0", "settings" : [] },
  342. "search_api_alter_node_status" : { "status" : 1, "weight" : "0", "settings" : [] },
  343. "search_api_alter_language_control" : {
  344. "status" : 1,
  345. "weight" : "0",
  346. "settings" : { "lang_field" : "", "languages" : { "und" : "und", "en" : "en" } }
  347. },
  348. "search_api_alter_add_viewed_entity" : { "status" : 0, "weight" : "0", "settings" : { "mode" : "full" } },
  349. "search_api_alter_add_url" : { "status" : 0, "weight" : "0", "settings" : [] },
  350. "search_api_alter_add_aggregation" : { "status" : 0, "weight" : "0", "settings" : [] },
  351. "search_api_alter_add_hierarchy" : { "status" : 0, "weight" : "0", "settings" : { "fields" : [] } }
  352. },
  353. "processors" : {
  354. "search_api_case_ignore" : { "status" : 1, "weight" : "0", "settings" : { "fields" : [] } },
  355. "search_api_html_filter" : {
  356. "status" : 0,
  357. "weight" : "10",
  358. "settings" : {
  359. "fields" : [],
  360. "title" : 0,
  361. "alt" : 1,
  362. "tags" : "h1 = 5\\r\\nh2 = 3\\r\\nh3 = 2\\r\\nstrong = 2\\r\\nb = 2\\r\\nem = 1.5\\r\\nu = 1.5"
  363. }
  364. },
  365. "search_api_tokenizer" : {
  366. "status" : 0,
  367. "weight" : "20",
  368. "settings" : { "fields" : [], "spaces" : "[^[:alnum:]]", "ignorable" : "[\\u0027]" }
  369. },
  370. "search_api_stopwords" : {
  371. "status" : 0,
  372. "weight" : "30",
  373. "settings" : {
  374. "fields" : [],
  375. "file" : "",
  376. "stopwords" : "but\\r\\ndid\\r\\nthe this that those\\r\\netc"
  377. }
  378. }
  379. }
  380. },
  381. "enabled" : "1",
  382. "read_only" : "0"
  383. }');
  384. $items['materiaux_breves_fr'] = entity_import('search_api_index', '{
  385. "name" : "Materiaux Breves FR",
  386. "machine_name" : "materiaux_breves_fr",
  387. "description" : null,
  388. "server" : "materio_solr3_fr",
  389. "item_type" : "node",
  390. "options" : {
  391. "index_directly" : 0,
  392. "cron_limit" : "50",
  393. "entity_translation_language" : "fr",
  394. "fields" : {
  395. "nid" : { "type" : "integer" },
  396. "type" : { "type" : "string" },
  397. "status" : { "type" : "boolean" },
  398. "author" : { "type" : "integer", "entity_type" : "user" },
  399. "materio_search_api_onthologie_term_1_text" : { "type" : "text", "boost" : "13.0" },
  400. "materio_search_api_onthologie_term_2_text" : { "type" : "text", "boost" : "8.0" },
  401. "materio_search_api_onthologie_term_3_text" : { "type" : "text", "boost" : "5.0" },
  402. "materio_search_api_onthologie_term_4_text" : { "type" : "text", "boost" : "3.0" },
  403. "materio_search_api_onthologie_term_5_text" : { "type" : "text", "boost" : "2.0" },
  404. "materio_search_api_onthologie_term_others_text" : { "type" : "list\\u003Ctext\\u003E" },
  405. "materio_search_api_taglibres_text" : { "type" : "list\\u003Ctext\\u003E", "boost" : "0.1" },
  406. "title_field" : { "type" : "text", "boost" : "3.0" },
  407. "field_nature_titre" : { "type" : "text", "boost" : "3.0" },
  408. "field_reference_materio" : { "type" : "text", "boost" : "0.3" },
  409. "materio_search_api_node_propertie_companie" : { "type" : "list\\u003Ctext\\u003E" },
  410. "search_api_language" : { "type" : "string" },
  411. "search_api_access_node" : { "type" : "list\\u003Cstring\\u003E" },
  412. "body:value" : { "type" : "text" },
  413. "field_description:value" : { "type" : "text" }
  414. },
  415. "data_alter_callbacks" : {
  416. "search_api_alter_bundle_filter" : {
  417. "status" : 1,
  418. "weight" : "-10",
  419. "settings" : {
  420. "default" : "0",
  421. "bundles" : { "breve" : "breve", "materiau" : "materiau" }
  422. }
  423. },
  424. "search_api_alter_node_access" : { "status" : 1, "weight" : "0", "settings" : [] },
  425. "search_api_alter_node_status" : { "status" : 1, "weight" : "0", "settings" : [] },
  426. "search_api_alter_language_control" : {
  427. "status" : 1,
  428. "weight" : "0",
  429. "settings" : { "lang_field" : "", "languages" : { "und" : "und", "fr" : "fr" } }
  430. },
  431. "search_api_alter_add_viewed_entity" : { "status" : 0, "weight" : "0", "settings" : { "mode" : "full" } },
  432. "search_api_alter_add_url" : { "status" : 0, "weight" : "0", "settings" : [] },
  433. "search_api_alter_add_aggregation" : { "status" : 0, "weight" : "0", "settings" : [] },
  434. "search_api_alter_add_hierarchy" : { "status" : 0, "weight" : "0", "settings" : { "fields" : [] } }
  435. },
  436. "processors" : {
  437. "search_api_case_ignore" : {
  438. "status" : 1,
  439. "weight" : "0",
  440. "settings" : { "fields" : { "title_field" : true, "field_reference_materio" : true } }
  441. },
  442. "search_api_html_filter" : {
  443. "status" : 0,
  444. "weight" : "10",
  445. "settings" : {
  446. "fields" : { "title_field" : true, "field_reference_materio" : true },
  447. "title" : 0,
  448. "alt" : 1,
  449. "tags" : "h1 = 5\\r\\nh2 = 3\\r\\nh3 = 2\\r\\nstrong = 2\\r\\nb = 2\\r\\nem = 1.5\\r\\nu = 1.5"
  450. }
  451. },
  452. "search_api_tokenizer" : {
  453. "status" : 0,
  454. "weight" : "20",
  455. "settings" : {
  456. "fields" : { "title_field" : true, "field_reference_materio" : true },
  457. "spaces" : "[^[:alnum:]]",
  458. "ignorable" : "[\\u0027]"
  459. }
  460. },
  461. "search_api_stopwords" : {
  462. "status" : 0,
  463. "weight" : "30",
  464. "settings" : {
  465. "fields" : { "title_field" : true, "field_reference_materio" : true },
  466. "file" : "",
  467. "stopwords" : "but\\r\\ndid\\r\\nthe this that those\\r\\netc"
  468. }
  469. }
  470. }
  471. },
  472. "enabled" : "1",
  473. "read_only" : "0"
  474. }');
  475. $items['referencement'] = entity_import('search_api_index', '{
  476. "name" : "R\\u00e9f\\u00e9rencement",
  477. "machine_name" : "referencement",
  478. "description" : null,
  479. "server" : null,
  480. "item_type" : "taxonomy_term",
  481. "options" : {
  482. "index_directly" : 0,
  483. "cron_limit" : "1000",
  484. "fields" : {
  485. "description" : { "type" : "text" },
  486. "synonyms_synonym" : { "type" : "list\\u003Ctext\\u003E" },
  487. "name_field" : { "type" : "text" },
  488. "search_api_language" : { "type" : "string" }
  489. },
  490. "data_alter_callbacks" : {
  491. "search_api_alter_bundle_filter" : {
  492. "status" : 1,
  493. "weight" : "-10",
  494. "settings" : {
  495. "default" : "0",
  496. "bundles" : { "onthologie" : "onthologie", "tag_libres" : "tag_libres" }
  497. }
  498. },
  499. "search_api_alter_language_control" : {
  500. "status" : 0,
  501. "weight" : "0",
  502. "settings" : { "lang_field" : "", "languages" : [] }
  503. },
  504. "search_api_alter_add_hierarchy" : { "status" : 0, "weight" : "0", "settings" : { "fields" : [] } },
  505. "search_api_alter_add_aggregation" : { "status" : 1, "weight" : "0", "settings" : [] },
  506. "search_api_alter_add_url" : { "status" : 0, "weight" : "0", "settings" : [] },
  507. "search_api_alter_add_viewed_entity" : { "status" : 0, "weight" : "0", "settings" : { "mode" : "full" } }
  508. },
  509. "processors" : {
  510. "search_api_case_ignore" : {
  511. "status" : 1,
  512. "weight" : "0",
  513. "settings" : { "fields" : { "name" : true, "parent" : true, "synonyms_synonym" : true } }
  514. },
  515. "search_api_html_filter" : {
  516. "status" : 0,
  517. "weight" : "10",
  518. "settings" : {
  519. "fields" : { "name" : true, "synonyms_synonym" : true, "vocabulary:name" : true },
  520. "title" : 0,
  521. "alt" : 1,
  522. "tags" : "h1 = 5\\r\\nh2 = 3\\r\\nh3 = 2\\r\\nstrong = 2\\r\\nb = 2\\r\\nem = 1.5\\r\\nu = 1.5"
  523. }
  524. },
  525. "search_api_tokenizer" : {
  526. "status" : 0,
  527. "weight" : "20",
  528. "settings" : {
  529. "fields" : { "name" : true, "synonyms_synonym" : true, "vocabulary:name" : true },
  530. "spaces" : "[^[:alnum:]]",
  531. "ignorable" : "[\\u0027]"
  532. }
  533. },
  534. "search_api_stopwords" : {
  535. "status" : 0,
  536. "weight" : "30",
  537. "settings" : {
  538. "fields" : { "name" : true, "synonyms_synonym" : true, "vocabulary:name" : true },
  539. "file" : "",
  540. "stopwords" : "but\\r\\ndid\\r\\nthe this that those\\r\\netc"
  541. }
  542. }
  543. }
  544. },
  545. "enabled" : "0",
  546. "read_only" : "0"
  547. }');
  548. $items['referencement_en'] = entity_import('search_api_index', '{
  549. "name" : "r\\u00e9f\\u00e9rencement en",
  550. "machine_name" : "referencement_en",
  551. "description" : null,
  552. "server" : "materio_solr3_en",
  553. "item_type" : "taxonomy_term",
  554. "options" : {
  555. "index_directly" : 0,
  556. "cron_limit" : "50",
  557. "entity_translation_language" : "en",
  558. "fields" : {
  559. "description" : { "type" : "text", "boost" : "0.3" },
  560. "synonyms_synonym" : {
  561. "type" : "list\\u003Ctext\\u003E",
  562. "real_type" : "list\\u003Cedge_n2_kw_text\\u003E"
  563. },
  564. "name_field" : { "type" : "text", "real_type" : "edge_n2_kw_text" },
  565. "search_api_language" : { "type" : "string" }
  566. },
  567. "data_alter_callbacks" : {
  568. "search_api_alter_bundle_filter" : {
  569. "status" : 1,
  570. "weight" : "-10",
  571. "settings" : {
  572. "default" : "0",
  573. "bundles" : { "onthologie" : "onthologie", "tag_libres" : "tag_libres" }
  574. }
  575. },
  576. "search_api_alter_language_control" : {
  577. "status" : 1,
  578. "weight" : "0",
  579. "settings" : { "lang_field" : "", "languages" : { "und" : "und", "en" : "en" } }
  580. },
  581. "search_api_alter_add_hierarchy" : { "status" : 0, "weight" : "0", "settings" : { "fields" : [] } },
  582. "search_api_alter_add_aggregation" : { "status" : 0, "weight" : "0", "settings" : [] },
  583. "search_api_alter_add_url" : { "status" : 0, "weight" : "0", "settings" : [] },
  584. "search_api_alter_add_viewed_entity" : { "status" : 0, "weight" : "0", "settings" : { "mode" : "full" } }
  585. },
  586. "processors" : {
  587. "search_api_case_ignore" : {
  588. "status" : 1,
  589. "weight" : "0",
  590. "settings" : { "fields" : { "description" : true, "synonyms_synonym" : true, "name_field" : true } }
  591. },
  592. "search_api_html_filter" : {
  593. "status" : 0,
  594. "weight" : "10",
  595. "settings" : {
  596. "fields" : { "description" : true, "synonyms_synonym" : true, "name_field" : true },
  597. "title" : 0,
  598. "alt" : 1,
  599. "tags" : "h1 = 5\\r\\nh2 = 3\\r\\nh3 = 2\\r\\nstrong = 2\\r\\nb = 2\\r\\nem = 1.5\\r\\nu = 1.5"
  600. }
  601. },
  602. "search_api_tokenizer" : {
  603. "status" : 0,
  604. "weight" : "20",
  605. "settings" : {
  606. "fields" : { "description" : true, "synonyms_synonym" : true, "name_field" : true },
  607. "spaces" : "[^[:alnum:]]",
  608. "ignorable" : "[\\u0027]"
  609. }
  610. },
  611. "search_api_stopwords" : {
  612. "status" : 0,
  613. "weight" : "30",
  614. "settings" : {
  615. "fields" : { "description" : true, "synonyms_synonym" : true, "name_field" : true },
  616. "file" : "",
  617. "stopwords" : "but\\r\\ndid\\r\\nthe this that those\\r\\netc"
  618. }
  619. }
  620. }
  621. },
  622. "enabled" : "1",
  623. "read_only" : "0"
  624. }');
  625. $items['referencement_fr'] = entity_import('search_api_index', '{
  626. "name" : "r\\u00e9f\\u00e9rencement fr",
  627. "machine_name" : "referencement_fr",
  628. "description" : null,
  629. "server" : "materio_solr3_fr",
  630. "item_type" : "taxonomy_term",
  631. "options" : {
  632. "index_directly" : 0,
  633. "cron_limit" : "50",
  634. "entity_translation_language" : "fr",
  635. "fields" : {
  636. "description" : { "type" : "text", "boost" : "0.3" },
  637. "materio_search_api_term_property_dup_name" : { "type" : "text", "real_type" : "edge_n2_kw_mapped_text" },
  638. "synonyms_synonym" : {
  639. "type" : "list\\u003Ctext\\u003E",
  640. "real_type" : "list\\u003Cedge_n2_kw_text\\u003E"
  641. },
  642. "name_field" : { "type" : "text", "real_type" : "edge_n2_kw_text" },
  643. "search_api_language" : { "type" : "string" }
  644. },
  645. "data_alter_callbacks" : {
  646. "search_api_alter_bundle_filter" : {
  647. "status" : 1,
  648. "weight" : "-10",
  649. "settings" : {
  650. "default" : "0",
  651. "bundles" : { "onthologie" : "onthologie", "tag_libres" : "tag_libres" }
  652. }
  653. },
  654. "search_api_alter_language_control" : {
  655. "status" : 1,
  656. "weight" : "0",
  657. "settings" : { "lang_field" : "", "languages" : { "und" : "und", "fr" : "fr" } }
  658. },
  659. "search_api_alter_add_hierarchy" : { "status" : 0, "weight" : "0", "settings" : { "fields" : [] } },
  660. "search_api_alter_add_aggregation" : { "status" : 0, "weight" : "0", "settings" : [] },
  661. "search_api_alter_add_url" : { "status" : 0, "weight" : "0", "settings" : [] },
  662. "search_api_alter_add_viewed_entity" : { "status" : 0, "weight" : "0", "settings" : { "mode" : "full" } }
  663. },
  664. "processors" : {
  665. "search_api_case_ignore" : {
  666. "status" : 1,
  667. "weight" : "0",
  668. "settings" : { "fields" : { "description" : true, "synonyms_synonym" : true, "name_field" : true } }
  669. },
  670. "search_api_html_filter" : {
  671. "status" : 0,
  672. "weight" : "10",
  673. "settings" : {
  674. "fields" : { "description" : true, "synonyms_synonym" : true, "name_field" : true },
  675. "title" : 0,
  676. "alt" : 1,
  677. "tags" : "h1 = 5\\r\\nh2 = 3\\r\\nh3 = 2\\r\\nstrong = 2\\r\\nb = 2\\r\\nem = 1.5\\r\\nu = 1.5"
  678. }
  679. },
  680. "search_api_tokenizer" : {
  681. "status" : 0,
  682. "weight" : "20",
  683. "settings" : {
  684. "fields" : { "description" : true, "synonyms_synonym" : true, "name_field" : true },
  685. "spaces" : "[^[:alnum:]]",
  686. "ignorable" : "[\\u0027]"
  687. }
  688. },
  689. "search_api_stopwords" : {
  690. "status" : 0,
  691. "weight" : "30",
  692. "settings" : {
  693. "fields" : { "description" : true, "synonyms_synonym" : true, "name_field" : true },
  694. "file" : "",
  695. "stopwords" : "but\\r\\ndid\\r\\nthe this that those\\r\\netc"
  696. }
  697. }
  698. }
  699. },
  700. "enabled" : "1",
  701. "read_only" : "0"
  702. }');
  703. return $items;
  704. }