diff options
author | Edwin Lawrance <Edwin.Lawrance@amdocs.com> | 2018-07-12 16:28:57 +0100 |
---|---|---|
committer | Edwin Lawrance <Edwin.Lawrance@amdocs.com> | 2018-08-01 17:23:05 +0100 |
commit | 8fb6b69f8ddc607d0413dc851f629a2e300e1be9 (patch) | |
tree | 0cff609b5a0d334781230d93a3b62692763f994f /src/test/resources | |
parent | 77ce5bb14520c262f27995da98e13f64fb9912f5 (diff) |
Updating Search service to be ES 6.1.2 compliant
Payload to Elastic Search is translated to comply ES6.1.2
PUT and POST calls now have content-type header
Added functionality for dynamic templates
Change-Id: I2a44a8a9999ec01a3bad1fb6999fe35bb6ef70d1
Issue-ID: AAI-1376
Signed-off-by: Edwin Lawrance <Edwin.Lawrance@amdocs.com>
Diffstat (limited to 'src/test/resources')
-rw-r--r-- | src/test/resources/json/dynamic-custom-template.json | 12 | ||||
-rw-r--r-- | src/test/resources/json/es-payload-translation.json | 24 |
2 files changed, 36 insertions, 0 deletions
diff --git a/src/test/resources/json/dynamic-custom-template.json b/src/test/resources/json/dynamic-custom-template.json new file mode 100644 index 0000000..a7bd5ae --- /dev/null +++ b/src/test/resources/json/dynamic-custom-template.json @@ -0,0 +1,12 @@ +"dynamic_templates":[ + { + "strings":{ + "match_mapping_type":"string", + "match": "*", + "mapping":{ + "type":"text", + "fielddata":true + } + } + } +],
\ No newline at end of file diff --git a/src/test/resources/json/es-payload-translation.json b/src/test/resources/json/es-payload-translation.json new file mode 100644 index 0000000..e5290b0 --- /dev/null +++ b/src/test/resources/json/es-payload-translation.json @@ -0,0 +1,24 @@ +{ + "attr-translations": [ + { + "from": "\"data-type\":\"string\"", + "to": "\"data-type\":\"text\",\"fielddata\":true" + }, + { + "from": "\"type\":\"string\",\"index\":\"analyzed\"", + "to": "\"type\":\"text\",\"index\":\"true\",\"fielddata\":true" + }, + { + "from": "\"type\":\"string\",\"index\":\"not_analyzed\"", + "to": "\"type\":\"keyword\",\"index\":\"true\"" + }, + { + "from": "\"type\":\"string\"", + "to": "\"type\":\"text\",\"fielddata\":true" + }, + { + "from": "searchable", + "to": "index" + } + ] +}
\ No newline at end of file |