From a05a50857b02543bb31e101c99e5610c6bfe90d6 Mon Sep 17 00:00:00 2001 From: reshmi-nair <54312456+reshmi-nair@users.noreply.github.com> Date: Fri, 19 Mar 2021 17:32:30 +0530 Subject: [PATCH] SC-2184 User schema to have location,persona, subpersona as first class attributes (#2338) --- .../files/mappings/user-mapping.json | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/ansible/roles/es-mapping/files/mappings/user-mapping.json b/ansible/roles/es-mapping/files/mappings/user-mapping.json index 76f63e89b..b9e0784db 100644 --- a/ansible/roles/es-mapping/files/mappings/user-mapping.json +++ b/ansible/roles/es-mapping/files/mappings/user-mapping.json @@ -771,6 +771,46 @@ "analyzer": "cs_search_analyzer", "search_analyzer": "cs_search_analyzer" }, + "profileLocation": { + "properties": { + "id": { + "type": "keyword", + "fields": { + "raw": { + "type": "keyword" + } + } + }, + "type": { + "type": "keyword", + "fields": { + "raw": { + "type": "keyword" + } + } + } + } + }, + "profileUserType": { + "properties": { + "subType": { + "type": "keyword", + "fields": { + "raw": { + "type": "keyword" + } + } + }, + "type": { + "type": "keyword", + "fields": { + "raw": { + "type": "keyword" + } + } + } + } + }, "vernacularLanguageStudied": { "type": "keyword", "index": false -- GitLab