From 84d59bb17389110dba6c96423dce1758e785ba0b Mon Sep 17 00:00:00 2001 From: mirdono Date: Thu, 7 Mar 2024 19:34:42 +0100 Subject: [PATCH] feat: include alternative name in search index --- config/search/config.json | 10 ++++++++++ config/search/dev/config.json | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/config/search/config.json b/config/search/config.json index 48f6676..afecb61 100644 --- a/config/search/config.json +++ b/config/search/config.json @@ -766,6 +766,7 @@ "properties": { "name": "http://www.w3.org/2004/02/skos/core#prefLabel", "legal_name": "http://www.w3.org/ns/regorg#legalName", + "alternative_name": "http://www.w3.org/2004/02/skos/core#altLabel", "classification_id": [ "http://www.w3.org/ns/org#classification", "http://mu.semte.ch/vocabularies/core/uuid" @@ -832,6 +833,15 @@ } } }, + "alternative_name": { + "type": "text", + "fields": { + "field": { + "type": "keyword", + "normalizer": "custom_sort_normalizer" + } + } + }, "classification_name": { "type": "text", "fields": { diff --git a/config/search/dev/config.json b/config/search/dev/config.json index 2d1b912..53a4f19 100644 --- a/config/search/dev/config.json +++ b/config/search/dev/config.json @@ -739,6 +739,7 @@ "properties": { "name": "http://www.w3.org/2004/02/skos/core#prefLabel", "legal_name": "http://www.w3.org/ns/regorg#legalName", + "alternative_name": "http://www.w3.org/2004/02/skos/core#altLabel", "classification_id": [ "http://www.w3.org/ns/org#classification", "http://mu.semte.ch/vocabularies/core/uuid" @@ -805,6 +806,15 @@ } } }, + "alternative_name": { + "type": "text", + "fields": { + "field": { + "type": "keyword", + "normalizer": "custom_sort_normalizer" + } + } + }, "classification_name": { "type": "text", "fields": {