diff options
author | Edwin Lawrance <Edwin.Lawrance@amdocs.com> | 2018-07-16 19:55:15 +0100 |
---|---|---|
committer | Alexis de Talhouƫt <alexis.de_talhouet@bell.ca> | 2018-08-14 14:54:59 +0000 |
commit | 75b973f47001bd27d68b2dec5f4f76b9189b59ac (patch) | |
tree | eda33a439a1a672d171f492f039228486da79957 /charts/aai-search-data/resources | |
parent | 1996ca0d6cdbee6484d1490735b7ff566f3aa7b3 (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 'charts/aai-search-data/resources')
-rw-r--r-- | charts/aai-search-data/resources/config/dynamic-custom-template.json | 12 | ||||
-rw-r--r-- | charts/aai-search-data/resources/config/es-payload-translation.json | 20 |
2 files changed, 32 insertions, 0 deletions
diff --git a/charts/aai-search-data/resources/config/dynamic-custom-template.json b/charts/aai-search-data/resources/config/dynamic-custom-template.json new file mode 100644 index 0000000..2dac8f7 --- /dev/null +++ b/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/charts/aai-search-data/resources/config/es-payload-translation.json b/charts/aai-search-data/resources/config/es-payload-translation.json new file mode 100644 index 0000000..93888be --- /dev/null +++ b/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 |