From 711c4be5cc2f2b33c1d483eaab075c4bd0c3581c Mon Sep 17 00:00:00 2001 From: kumarks1122 Date: Tue, 28 Nov 2023 21:28:14 +0530 Subject: [PATCH] LR-704 | Elasticsearch mapping updated --- .../files/mappings/userv3-mapping.json | 28 ++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/ansible/roles/es-mapping/files/mappings/userv3-mapping.json b/ansible/roles/es-mapping/files/mappings/userv3-mapping.json index 8b6fa174be..562119f204 100644 --- a/ansible/roles/es-mapping/files/mappings/userv3-mapping.json +++ b/ansible/roles/es-mapping/files/mappings/userv3-mapping.json @@ -1,5 +1,31 @@ { - "dynamic": false, + "dynamic": "true", + "dynamic_templates": [ + { + "framework_fields": { + "path_match": "framework.*", + "mapping": { + "fields": { + "raw": { + "type": "text", + "analyzer": "keylower" + } + }, + "analyzer": "cs_search_analyzer", + "search_analyzer": "cs_search_analyzer" + } + } + }, + { + "non_indexable_fields": { + "path_match": "*", + "path_unmatch": "framework.*", + "mapping": { + "index": false + } + } + } + ], "properties": { "managedBy": { "type": "keyword",