Ver código fonte

search_api solr config for lait vs laiton #1568 4

bach 3 anos atrás
pai
commit
d0ff97d272
1 arquivos alterados com 27 adições e 3 exclusões
  1. 27 3
      config/sync/search_api.index.database.yml

+ 27 - 3
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