diff options
author | Lawrance, Edwin (el525a) <Edwin.Lawrance@amdocs.com> | 2018-09-14 15:56:22 +0100 |
---|---|---|
committer | Lawrance, Edwin (el525a) <Edwin.Lawrance@amdocs.com> | 2018-09-14 15:56:22 +0100 |
commit | e8c637b351d764a01a457550d56611e38ab6b420 (patch) | |
tree | fe0d4c16c7aca8c305a2b96a3280a67ba1f36a2c /charts/aai-search-data/resources/config | |
parent | 56e33b3ce6242f41fba77b4cdf7d59f200fd411b (diff) |
Config update to fix whitespaces issue in payload
Change-Id: I441e26f6e4c7add77ec65fb651b4cd59f9c4c06b
Issue-ID: AAI-1596
Signed-off-by: Edwin Lawrance <Edwin.Lawrance@amdocs.com>
Diffstat (limited to 'charts/aai-search-data/resources/config')
-rw-r--r-- | charts/aai-search-data/resources/config/es-payload-translation.json | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/charts/aai-search-data/resources/config/es-payload-translation.json b/charts/aai-search-data/resources/config/es-payload-translation.json index 93888be..b44b4ec 100644 --- a/charts/aai-search-data/resources/config/es-payload-translation.json +++ b/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 |