summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdwin Lawrance <Edwin.Lawrance@amdocs.com>2018-09-14 16:12:15 +0100
committerEdwin Lawrance <Edwin.Lawrance@amdocs.com>2018-09-14 16:12:15 +0100
commitba9b6a7151aaa4abf981e3002f5c5b9cf5328de0 (patch)
treeac46ec55ce4854f8eaee71a3b6e7c8cfa8838ff8
parentb817de402326bdaa1c3c6b189aad673474f57a5f (diff)
Config update to fix whitespaces issue in payload
Change-Id: Ib4bfe3e8fa9cff1fccc3c27723f35bb3bf415d0c Issue-ID: AAI-1596 Signed-off-by: Edwin Lawrance <Edwin.Lawrance@amdocs.com>
-rw-r--r--search-data-service/appconfig/es-payload-translation.json16
1 files changed, 6 insertions, 10 deletions
diff --git a/search-data-service/appconfig/es-payload-translation.json b/search-data-service/appconfig/es-payload-translation.json
index 967a28a..b44b4ec 100644
--- a/search-data-service/appconfig/es-payload-translation.json
+++ b/search-data-service/appconfig/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