From 1dd65af5616e1725e81e00be05bd7e12ffa9eb73 Mon Sep 17 00:00:00 2001 From: bach Date: Tue, 26 Jan 2021 12:27:30 +0100 Subject: [PATCH] added industriels name and country code to sapi solr index --- config/sync/search_api.index.database.yml | 51 ++++++++++++++++++++++- 1 file changed, 50 insertions(+), 1 deletion(-) diff --git a/config/sync/search_api.index.database.yml b/config/sync/search_api.index.database.yml index 738e2b0..e939cf9 100644 --- a/config/sync/search_api.index.database.yml +++ b/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