Browse Source

added industriels name and country code to sapi solr index

bach 3 years ago
parent
commit
1dd65af561
1 changed files with 50 additions and 1 deletions
  1. 50 1
      config/sync/search_api.index.database.yml

+ 50 - 1
config/sync/search_api.index.database.yml

@@ -4,12 +4,15 @@ status: true
 dependencies:
   module:
     - search_api_solr
-    - node
     - taxonomy
+    - node
     - search_api
   config:
     - field.storage.node.body
+    - field.storage.node.field_distributor
+    - field.storage.taxonomy_term.field_public_address
     - field.storage.node.field_famille
+    - field.storage.node.field_manufacturer
     - field.storage.node.field_reference
     - field.storage.node.field_tags
     - field.storage.taxonomy_term.field_synonyms
@@ -45,6 +48,28 @@ name: database
 description: ''
 read_only: false
 field_settings:
+  country_code:
+    label: 'Manufacturer » Terme de taxonomie » Address » The two-letter country code'
+    datasource_id: 'entity:node'
+    property_path: 'field_manufacturer:entity:field_public_address:country_code'
+    type: string
+    dependencies:
+      config:
+        - field.storage.node.field_manufacturer
+        - field.storage.taxonomy_term.field_public_address
+      module:
+        - taxonomy
+  country_code_1:
+    label: 'Distributor » Terme de taxonomie » Address » The two-letter country code'
+    datasource_id: 'entity:node'
+    property_path: 'field_distributor:entity:field_public_address:country_code'
+    type: string
+    dependencies:
+      config:
+        - field.storage.node.field_distributor
+        - field.storage.taxonomy_term.field_public_address
+      module:
+        - taxonomy
   field_famille:
     label: Famille
     datasource_id: 'entity:node'
@@ -62,6 +87,26 @@ field_settings:
     dependencies:
       config:
         - field.storage.node.field_reference
+  name:
+    label: 'Manufacturer » Terme de taxonomie » Nom'
+    datasource_id: 'entity:node'
+    property_path: 'field_manufacturer:entity:name'
+    type: text
+    dependencies:
+      config:
+        - field.storage.node.field_manufacturer
+      module:
+        - taxonomy
+  name_1:
+    label: 'Distributor » Terme de taxonomie » Nom'
+    datasource_id: 'entity:node'
+    property_path: 'field_distributor:entity:name'
+    type: text
+    dependencies:
+      config:
+        - field.storage.node.field_distributor
+      module:
+        - taxonomy
   nid:
     label: ID
     datasource_id: 'entity:node'
@@ -230,8 +275,12 @@ processor_settings:
   html_filter:
     all_fields: true
     fields:
+      - country_code
+      - country_code_1
       - field_famille
       - field_reference
+      - name
+      - name_1
       - processed
       - tag_name
       - tag_synonyms