瀏覽代碼

added drupal config for research

Bachir Soussi Chiadmi 6 年之前
父節點
當前提交
740405b746
共有 1 個文件被更改,包括 30 次插入9 次删除
  1. 30 9
      sites/default/config/sync/search_api.index.collection.yml

+ 30 - 9
sites/default/config/sync/search_api.index.collection.yml

@@ -8,9 +8,10 @@ dependencies:
     - field.storage.node.field_transcript_trad
     - field.storage.node.field_transcript_vo
     - field.storage.node.field_entrees
-    - field.storage.node.field_genres
     - field.storage.node.field_locuteurs
     - field.storage.node.field_workflow
+    - field.storage.node.field_genres
+    - field.storage.node.field_langues
     - search_api.server.edlp_db
   module:
     - taxonomy
@@ -101,14 +102,6 @@ field_settings:
     dependencies:
       config:
         - field.storage.node.field_entrees
-  field_genres:
-    label: Genre(s)
-    datasource_id: 'entity:node'
-    property_path: field_genres
-    type: integer
-    dependencies:
-      config:
-        - field.storage.node.field_genres
   field_locuteurs:
     label: Locuteur(s)
     datasource_id: 'entity:node'
@@ -125,6 +118,26 @@ field_settings:
     dependencies:
       config:
         - field.storage.node.field_workflow
+  field_genres:
+    label: 'Genre(s) » Taxonomy term » Name'
+    datasource_id: 'entity:node'
+    property_path: 'field_genres:entity:name'
+    type: text
+    dependencies:
+      config:
+        - field.storage.node.field_genres
+      module:
+        - taxonomy
+  field_langues:
+    label: 'Langue(s) » Taxonomy term » Name'
+    datasource_id: 'entity:node'
+    property_path: 'field_langues:entity:name'
+    type: text
+    dependencies:
+      config:
+        - field.storage.node.field_langues
+      module:
+        - taxonomy
 datasource_settings:
   'entity:node':
     bundles:
@@ -146,6 +159,8 @@ processor_settings:
       - field_transcript_trad
       - field_transcript_vo
       - name
+      - field_genres
+      - field_langues
     spaces: ''
     overlap_cjk: 1
     minimum_word_size: '3'
@@ -183,6 +198,8 @@ processor_settings:
       - field_transcript_trad
       - field_transcript_vo
       - name
+      - field_genres
+      - field_langues
     stopwords:
       - a
       - an
@@ -232,6 +249,8 @@ processor_settings:
       - field_transcript_vo
       - name
       - field_workflow
+      - field_genres
+      - field_langues
     weights:
       preprocess_index: -20
       preprocess_query: -20
@@ -245,6 +264,8 @@ processor_settings:
       - field_transcript_vo
       - name
       - field_workflow
+      - field_genres
+      - field_langues
     weights:
       preprocess_index: -20
       preprocess_query: -20