瀏覽代碼

added author name field in search api #2293

bach 8 月之前
父節點
當前提交
17ee1f0566
共有 2 個文件被更改,包括 35 次插入11 次删除
  1. 20 7
      src/config/sync/search_api.index.concernements.yml
  2. 15 4
      src/config/sync/search_api.index.entites.yml

+ 20 - 7
src/config/sync/search_api.index.concernements.yml

@@ -3,19 +3,20 @@ langcode: fr
 status: true
 dependencies:
   config:
-    - field.storage.node.field_caillou
-    - field.storage.node.field_description
     - field.storage.node.field_action
     - field.storage.node.field_entite
     - field.storage.paragraph.field_entite
-    - field.storage.node.field_sources
-    - field.storage.paragraph.field_description
+    - field.storage.node.field_caillou
+    - field.storage.node.field_description
     - field.storage.node.field_menace_maintien
     - field.storage.node.field_recit_colophon
+    - field.storage.node.field_sources
+    - field.storage.paragraph.field_description
     - search_api.server.ouatterrir
   module:
     - node
     - paragraphs
+    - user
     - search_api
 id: concernements
 name: Concernements
@@ -75,6 +76,15 @@ field_settings:
     dependencies:
       config:
         - field.storage.node.field_recit_colophon
+  name:
+    label: 'Écrit par » User » Nom'
+    datasource_id: 'entity:node'
+    property_path: 'uid:entity:name'
+    type: text
+    dependencies:
+      module:
+        - node
+        - user
   nid:
     label: 'Identifiant (ID)'
     datasource_id: 'entity:node'
@@ -198,23 +208,26 @@ processor_settings:
     alt: true
     tags:
       b: 2
-      em: 1
       h1: 5
       h2: 3
       h3: 2
       strong: 2
-      u: 1
   ignorecase:
     weights:
       preprocess_index: -20
       preprocess_query: -20
-    all_fields: false
+    all_fields: true
     fields:
+      - field_action
       - field_caillou
       - field_description
+      - field_menace_maintien
       - field_recit_colophon
+      - name
+      - processed
       - title
       - title_1
+      - title_2
       - uuid
   language_with_fallback: {  }
   rendered_item: {  }

+ 15 - 4
src/config/sync/search_api.index.entites.yml

@@ -5,13 +5,14 @@ dependencies:
   config:
     - field.storage.node.field_action
     - field.storage.node.field_sources
-    - field.storage.paragraph.field_description
     - field.storage.paragraph.field_liens
     - field.storage.node.field_menace_maintien
+    - field.storage.paragraph.field_description
     - search_api.server.ouatterrir
   module:
     - paragraphs
     - node
+    - user
     - search_api
 id: entites
 name: Entités
@@ -45,6 +46,15 @@ field_settings:
     dependencies:
       config:
         - field.storage.node.field_menace_maintien
+  name:
+    label: 'Écrit par » User » Nom'
+    datasource_id: 'entity:node'
+    property_path: 'uid:entity:name'
+    type: text
+    dependencies:
+      module:
+        - node
+        - user
   nid:
     label: 'Identifiant (ID)'
     datasource_id: 'entity:node'
@@ -137,20 +147,21 @@ processor_settings:
     alt: true
     tags:
       b: 2
-      em: 1
       h1: 5
       h2: 3
       h3: 2
       strong: 2
-      u: 1
   ignorecase:
     weights:
       preprocess_index: -20
       preprocess_query: -20
-    all_fields: false
+    all_fields: true
     fields:
       - field_action
+      - field_liens
       - field_menace_maintien
+      - name
+      - processed
       - title
       - uuid
   language_with_fallback: {  }