aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/aai/charts/aai-search-data/resources/config
diff options
context:
space:
mode:
authorEdwin Lawrance <Edwin.Lawrance@amdocs.com>2018-07-16 19:55:15 +0100
committerAlexis de Talhouƫt <alexis.de_talhouet@bell.ca>2018-08-14 14:54:59 +0000
commit52b0c7e7263f0dff6de0a7e80989886d56661426 (patch)
tree742b8be58c3555f48cb06f0095082256541cad14 /kubernetes/aai/charts/aai-search-data/resources/config
parent76ca0ffeb55c6a8bb155b81c6a69c54fef46a067 (diff)
ES payload translation & dynamic template config
Configs for ElasticSearch 6.1.2 Payload translation is to comply new version Dynamic template is for mapping "string" typed dynamic fields Change-Id: I3735fb20da2b9e9fcc99dbf9322a6063ab1cfe1e Issue-ID: AAI-1376 Signed-off-by: Edwin Lawrance <Edwin.Lawrance@amdocs.com>
Diffstat (limited to 'kubernetes/aai/charts/aai-search-data/resources/config')
-rw-r--r--kubernetes/aai/charts/aai-search-data/resources/config/dynamic-custom-template.json12
-rw-r--r--kubernetes/aai/charts/aai-search-data/resources/config/es-payload-translation.json20
2 files changed, 32 insertions, 0 deletions
diff --git a/kubernetes/aai/charts/aai-search-data/resources/config/dynamic-custom-template.json b/kubernetes/aai/charts/aai-search-data/resources/config/dynamic-custom-template.json
new file mode 100644
index 0000000000..2dac8f75c7
--- /dev/null
+++ b/kubernetes/aai/charts/aai-search-data/resources/config/dynamic-custom-template.json
@@ -0,0 +1,12 @@
+"dynamic_templates":[
+ {
+ "strings":{
+ "match_mapping_type":"string",
+ "match": "*",
+ "mapping":{
+ "type":"text",
+ "fielddata":true
+ }
+ }
+ }
+],
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
new file mode 100644
index 0000000000..93888befbc
--- /dev/null
+++ b/kubernetes/aai/charts/aai-search-data/resources/config/es-payload-translation.json
@@ -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