From d0ff97d2726112207d0ff3524b819c6861b646e8 Mon Sep 17 00:00:00 2001 From: bach Date: Mon, 25 Oct 2021 19:21:35 +0200 Subject: [PATCH] search_api solr config for lait vs laiton #1568 4 --- config/sync/search_api.index.database.yml | 30 ++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/config/sync/search_api.index.database.yml b/config/sync/search_api.index.database.yml index c88ecef..42ed60c 100644 --- a/config/sync/search_api.index.database.yml +++ b/config/sync/search_api.index.database.yml @@ -141,7 +141,8 @@ field_settings: label: 'Description » Processed text' datasource_id: 'entity:node' property_path: 'body:processed' - type: 'solr_text_custom:asciistring' + type: 'solr_text_custom:edgeasciistring' + boost: !!float 0 dependencies: config: - field.storage.node.body @@ -193,7 +194,7 @@ field_settings: label: 'Thesaurus » Taxonomy term » Name' datasource_id: 'entity:node' property_path: 'field_thesaurus:entity:name' - type: 'solr_text_custom:edgeasciistring' + type: 'solr_text_custom:asciistring' boost: !!float 2 dependencies: config: @@ -250,11 +251,21 @@ field_settings: module: - materio_sapi - taxonomy + thesaurus_name_ngram: + label: 'Thesaurus » Terme de taxonomie » Nom' + datasource_id: 'entity:node' + property_path: 'field_thesaurus:entity:name' + type: 'solr_text_custom:edgeasciistring' + dependencies: + config: + - field.storage.node.field_thesaurus + module: + - taxonomy thesaurus_synonyms: label: 'Thesaurus » Taxonomy term » Synonyms' datasource_id: 'entity:node' property_path: 'field_thesaurus:entity:field_synonyms' - type: 'solr_text_custom:edgeasciistring' + type: 'solr_text_custom:asciistring' boost: !!float 2 dependencies: config: @@ -321,6 +332,17 @@ field_settings: module: - materio_sapi - taxonomy + thesaurus_synonyms_ngram: + label: 'Thesaurus » Terme de taxonomie » Synonyms' + datasource_id: 'entity:node' + property_path: 'field_thesaurus:entity:field_synonyms' + type: 'solr_text_custom:edgeasciistring' + dependencies: + config: + - field.storage.node.field_thesaurus + - field.storage.taxonomy_term.field_synonyms + module: + - taxonomy thesaurus_tid: label: 'Thesaurus » Taxonomy term » Term ID' datasource_id: 'entity:node' @@ -429,12 +451,14 @@ processor_settings: - thesaurus_name_2 - thesaurus_name_3 - thesaurus_name_4 + - thesaurus_name_ngram - thesaurus_synonyms - thesaurus_synonyms_0 - thesaurus_synonyms_1 - thesaurus_synonyms_2 - thesaurus_synonyms_3 - thesaurus_synonyms_4 + - thesaurus_synonyms_ngram - title - type - uuid