From 3e4a8962118410fa52f8c782ce509b77db4b649d Mon Sep 17 00:00:00 2001 From: "Lawrance, Edwin (el525a)" Date: Fri, 14 Sep 2018 15:56:22 +0100 Subject: Config update to fix whitespaces issue in payload Change-Id: I441e26f6e4c7add77ec65fb651b4cd59f9c4c06b Issue-ID: AAI-1596 Signed-off-by: Edwin Lawrance --- .../resources/config/es-payload-translation.json | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'kubernetes/aai/charts') diff --git a/kubernetes/aai/charts/aai-search-data/resources/config/es-payload-translation.json b/kubernetes/aai/charts/aai-search-data/resources/config/es-payload-translation.json index 93888befbc..b44b4ec294 100644 --- a/kubernetes/aai/charts/aai-search-data/resources/config/es-payload-translation.json +++ b/kubernetes/aai/charts/aai-search-data/resources/config/es-payload-translation.json @@ -1,20 +1,16 @@ { "attr-translations": [ { - "from": "\"type\":\"string\",\"index\":\"analyzed\"", - "to": "\"type\":\"text\",\"index\":\"true\"" + "query": "$..[?(@.type=='string' && @.index=='analyzed')]", + "update": {"type": "text", "index": true, "fielddata": true} }, { - "from": "\"type\":\"string\",\"index\":\"not_analyzed\"", - "to": "\"type\":\"keyword\",\"index\":\"true\"" + "query": "$..[?(@.type=='string' && @.index=='not_analyzed')]", + "update": {"type": "keyword", "index": true} }, { - "from": "\"type\":\"string\"", - "to": "\"type\":\"text\"" - }, - { - "from": "searchable", - "to": "index" + "query": "$..[?(@.type=='string' && !@.index)]", + "update": {"type": "text", "fielddata": true} } ] } \ No newline at end of file -- cgit 1.2.3-korg