ソースを参照

updated search api config

bach 3 年 前
コミット
e993963e1c

+ 18 - 5
config/sync/search_api.index.database.yml

@@ -8,12 +8,12 @@ dependencies:
     - node
     - search_api
   config:
-    - field.storage.node.body
-    - field.storage.node.field_distributor
+    - field.storage.node.field_manufacturer
     - field.storage.taxonomy_term.field_public_address
+    - field.storage.node.field_distributor
     - field.storage.node.field_famille
-    - field.storage.node.field_manufacturer
     - field.storage.node.field_reference
+    - field.storage.node.body
     - field.storage.node.field_tags
     - field.storage.taxonomy_term.field_synonyms
     - field.storage.node.field_thesaurus
@@ -41,11 +41,24 @@ third_party_settings:
         requireFieldMatch: false
         snippets: 3
         fragsize: 0
-    advanced:
-      index_prefix: ''
+    mlt:
+      mintf: 1
+      mindf: 1
+      maxdf: 0
+      maxdfpct: 0
+      minwl: 0
+      maxwl: 0
+      maxqt: 100
+      maxntp: 2000
+      boost: false
+      interestingTerms: none
     term_modifiers:
       slop: 10000000
       fuzzy: 2
+    advanced:
+      index_prefix: ''
+      collection: ''
+      timezone: ''
 id: database
 name: database
 description: ''

+ 4 - 4
config/sync/search_api.server.materio.yml

@@ -20,6 +20,7 @@ dependencies:
     - search_api_solr.solr_field_type.text_und_7_0_0
     - search_api_solr.solr_request_dispatcher.request_dispatcher_httpcachingnever_default_7_0_0
     - search_api_solr.solr_request_handler.request_handler_autocomplete_default_7_0_0
+    - search_api_solr.solr_request_handler.request_handler_elevate_default_7_0_0
     - search_api_solr.solr_request_handler.request_handler_extract_default_7_0_0
     - search_api_solr.solr_request_handler.request_handler_mlt_default_7_0_0
     - search_api_solr.solr_request_handler.request_handler_select_default_7_0_0
@@ -47,24 +48,23 @@ backend_config:
     commit_within: 1000
     solr_version: '8'
     http_method: AUTO
+    skip_schema_check: false
     jmx: false
     solr_install_dir: ../../..
-    skip_schema_check: false
   disabled_field_types: {  }
   disabled_caches: {  }
   disabled_request_handlers:
-    - request_handler_elevate_default_7_0_0
     - request_handler_replicationmaster_default_7_0_0
     - request_handler_replicationslave_default_7_0_0
   disabled_request_dispatchers:
     - request_dispatcher_httpcaching_default_7_0_0
   rows: 10
+  index_single_documents_fallback_count: 10
   retrieve_data: true
   highlight_data: false
+  fallback_multiple: true
   server_prefix: ''
   domain: generic
   environment: default
   optimize: false
   site_hash: true
-  index_single_documents_fallback_count: 10
-  fallback_multiple: true