From 3c486121d8e4f3fde62753afa2c0a49edf175f47 Mon Sep 17 00:00:00 2001 From: Edwin Lawrance Date: Wed, 1 Aug 2018 17:56:30 +0100 Subject: [PATCH] Adding dynamic custom template for ES v6 Mapping for "string" typed dynamic fields Change-Id: I5b8fbbd1f004701a827790bce053a0fc446ebb83 Issue-ID: AAI-1376 Signed-off-by: Edwin Lawrance --- search-data-service/appconfig/dynamic-custom-template.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 search-data-service/appconfig/dynamic-custom-template.json diff --git a/search-data-service/appconfig/dynamic-custom-template.json b/search-data-service/appconfig/dynamic-custom-template.json new file mode 100644 index 0000000..a7bd5ae --- /dev/null +++ b/search-data-service/appconfig/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 -- 2.16.6