Adding payload translation configuration for ES v6 79/56379/1
authorLawrance, Edwin (el525a) <Edwin.Lawrance@amdocs.com>
Fri, 13 Jul 2018 11:27:37 +0000 (12:27 +0100)
committerLawrance, Edwin (el525a) <Edwin.Lawrance@amdocs.com>
Fri, 13 Jul 2018 11:30:09 +0000 (12:30 +0100)
To be precise for ElasticSearch 6.1.2

Change-Id: Id8a70baeaef3bbb25dbdadcbc0edd9de2e4dc49b
Issue-ID: AAI-1376
Signed-off-by: Lawrance, Edwin (el525a) <Edwin.Lawrance@amdocs.com>
search-data-service/appconfig/es-payload-translation.json [new file with mode: 0644]

diff --git a/search-data-service/appconfig/es-payload-translation.json b/search-data-service/appconfig/es-payload-translation.json
new file mode 100644 (file)
index 0000000..967a28a
--- /dev/null
@@ -0,0 +1,20 @@
+{
+  "attr-translations": [
+    {
+      "from": "\"type\":\"string\",\"index\":\"analyzed\"",
+      "to": "\"type\":\"text\",\"index\":\"true\""
+    },
+    {
+      "from": "\"type\":\"string\",\"index\":\"not_analyzed\"",
+      "to": "\"type\":\"keyword\",\"index\":\"true\""
+    },
+    {
+      "from": "\"type\":\"string\"",
+      "to": "\"type\":\"text\""
+    },
+    { 
+      "from": "searchable",
+      "to": "index"
+    }
+  ]
+}
\ No newline at end of file