From 0b45cf7ae1e42a3b7071277e6ac637afdbb18171 Mon Sep 17 00:00:00 2001 From: Wes Lambert Date: Wed, 2 Mar 2022 14:25:57 +0000 Subject: [PATCH] Update base mappings to include .security --- .../templates/component/so/dtc-base-mappings.json | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/salt/elasticsearch/templates/component/so/dtc-base-mappings.json b/salt/elasticsearch/templates/component/so/dtc-base-mappings.json index aa89e8876..8211dc2e2 100644 --- a/salt/elasticsearch/templates/component/so/dtc-base-mappings.json +++ b/salt/elasticsearch/templates/component/so/dtc-base-mappings.json @@ -9,8 +9,9 @@ "message": { "type": "match_only_text", "fields": { - "text": { - "type": "match_only_text" + "security": { + "type": "text", + "analyzer": "es_security_analyzer" }, "keyword": { "type": "keyword" @@ -21,10 +22,11 @@ "ignore_above": 1024, "type": "keyword", "fields": { - "text": { - "type": "match_only_text" + "security": { + "type": "text", + "analyzer": "es_security_analyzer" }, - "keyword": { + "keyword": { "type": "keyword" } }