Procházet zdrojové kódy

asapi solr index fields config wich is working for lait (vs laiton)

bach před 3 roky
rodič
revize
c246934fb3
1 změnil soubory, kde provedl 41 přidání a 16 odebrání
  1. 41 16
      config/sync/search_api.index.database.yml

+ 41 - 16
config/sync/search_api.index.database.yml

@@ -71,7 +71,7 @@ field_settings:
     label: 'Country Name'
     datasource_id: 'entity:node'
     property_path: field_country_name_computed
-    type: 'solr_text_custom:edgeasciistring'
+    type: 'solr_text_custom:asciistring'
     boost: !!float 3
     dependencies:
       module:
@@ -97,7 +97,7 @@ field_settings:
     label: 'Short description'
     datasource_id: 'entity:node'
     property_path: field_short_description
-    type: 'solr_text_custom:edgeasciistring'
+    type: text
     boost: !!float 8
     dependencies:
       config:
@@ -141,7 +141,7 @@ field_settings:
     label: 'Description » Processed text'
     datasource_id: 'entity:node'
     property_path: 'body:processed'
-    type: 'solr_text_custom:ngram'
+    type: text
     dependencies:
       config:
         - field.storage.node.body
@@ -193,7 +193,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:
@@ -204,7 +204,7 @@ field_settings:
     label: 'Thesaurus 0 » Terme de taxonomie » Nom'
     datasource_id: 'entity:node'
     property_path: 'thesaurus_0:entity:name'
-    type: 'solr_text_custom:edgeasciistring'
+    type: 'solr_text_custom:asciistring'
     boost: !!float 21
     dependencies:
       module:
@@ -214,7 +214,7 @@ field_settings:
     label: 'Thesaurus 1 » Terme de taxonomie » Nom'
     datasource_id: 'entity:node'
     property_path: 'thesaurus_1:entity:name'
-    type: 'solr_text_custom:edgeasciistring'
+    type: 'solr_text_custom:asciistring'
     boost: !!float 13
     dependencies:
       module:
@@ -224,7 +224,7 @@ field_settings:
     label: 'Thesaurus 2 » Terme de taxonomie » Nom'
     datasource_id: 'entity:node'
     property_path: 'thesaurus_2:entity:name'
-    type: 'solr_text_custom:edgeasciistring'
+    type: 'solr_text_custom:asciistring'
     boost: !!float 8
     dependencies:
       module:
@@ -234,7 +234,7 @@ field_settings:
     label: 'Thesaurus 3 » Terme de taxonomie » Nom'
     datasource_id: 'entity:node'
     property_path: 'thesaurus_3:entity:name'
-    type: 'solr_text_custom:edgeasciistring'
+    type: 'solr_text_custom:asciistring'
     boost: !!float 5
     dependencies:
       module:
@@ -244,17 +244,28 @@ field_settings:
     label: 'Thesaurus 4 » Terme de taxonomie » Nom'
     datasource_id: 'entity:node'
     property_path: 'thesaurus_4:entity:name'
-    type: 'solr_text_custom:edgeasciistring'
+    type: 'solr_text_custom:asciistring'
     boost: !!float 3
     dependencies:
       module:
         - materio_sapi
         - taxonomy
+  thesaurus_name_edgenstringascii:
+    label: 'Thesaurus » Terme de taxonomie » Nom'
+    datasource_id: 'entity:node'
+    property_path: 'field_thesaurus:entity:name'
+    type: 'solr_text_custom:edgeasciistring'
+    boost: 0.5
+    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:
@@ -266,7 +277,7 @@ field_settings:
     label: 'Thesaurus 0 » Terme de taxonomie » Synonyms list'
     datasource_id: 'entity:node'
     property_path: 'thesaurus_0:entity:synonyms'
-    type: 'solr_text_custom:edgeasciistring'
+    type: 'solr_text_custom:asciistring'
     boost: !!float 21
     dependencies:
       module:
@@ -277,7 +288,7 @@ field_settings:
     label: 'Thesaurus 1 » Terme de taxonomie » Synonyms'
     datasource_id: 'entity:node'
     property_path: 'thesaurus_1:entity:field_synonyms'
-    type: 'solr_text_custom:edgeasciistring'
+    type: 'solr_text_custom:asciistring'
     boost: !!float 13
     dependencies:
       config:
@@ -289,7 +300,7 @@ field_settings:
     label: 'Thesaurus 2 » Terme de taxonomie » Synonyms'
     datasource_id: 'entity:node'
     property_path: 'thesaurus_2:entity:field_synonyms'
-    type: 'solr_text_custom:edgeasciistring'
+    type: 'solr_text_custom:asciistring'
     boost: !!float 8
     dependencies:
       config:
@@ -301,7 +312,7 @@ field_settings:
     label: 'Thesaurus 3 » Terme de taxonomie » Synonyms'
     datasource_id: 'entity:node'
     property_path: 'thesaurus_3:entity:field_synonyms'
-    type: 'solr_text_custom:edgeasciistring'
+    type: 'solr_text_custom:asciistring'
     boost: !!float 5
     dependencies:
       config:
@@ -313,7 +324,7 @@ field_settings:
     label: 'Thesaurus 4 » Terme de taxonomie » Synonyms'
     datasource_id: 'entity:node'
     property_path: 'thesaurus_4:entity:field_synonyms'
-    type: 'solr_text_custom:edgeasciistring'
+    type: 'solr_text_custom:asciistring'
     boost: !!float 3
     dependencies:
       config:
@@ -321,6 +332,18 @@ field_settings:
       module:
         - materio_sapi
         - taxonomy
+  thesaurus_synonyms_edgenstringascii:
+    label: 'Thesaurus » Terme de taxonomie » Synonyms'
+    datasource_id: 'entity:node'
+    property_path: 'field_thesaurus:entity:field_synonyms'
+    type: 'solr_text_custom:edgeasciistring'
+    boost: 0.5
+    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'
@@ -336,7 +359,7 @@ field_settings:
     label: Title
     datasource_id: 'entity:node'
     property_path: title
-    type: 'solr_text_custom:edgeasciistring'
+    type: 'solr_text_custom:asciistring'
     dependencies:
       module:
         - node
@@ -429,12 +452,14 @@ processor_settings:
       - thesaurus_name_2
       - thesaurus_name_3
       - thesaurus_name_4
+      - thesaurus_name_edgenstringascii
       - thesaurus_synonyms
       - thesaurus_synonyms_0
       - thesaurus_synonyms_1
       - thesaurus_synonyms_2
       - thesaurus_synonyms_3
       - thesaurus_synonyms_4
+      - thesaurus_synonyms_edgenstringascii
       - title
       - type
       - uuid