From 64f6d0fba93180f0627b56b5adeb822afa8c5193 Mon Sep 17 00:00:00 2001 From: Corey Ogburn Date: Fri, 9 Feb 2024 14:20:07 -0700 Subject: [PATCH] Updated Detection's ES Mappings Detection's now have a License field and the Comment model is defined now. --- .../component/so/detection-mappings.json | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/salt/elasticsearch/templates/component/so/detection-mappings.json b/salt/elasticsearch/templates/component/so/detection-mappings.json index 596236703..4efd2f73f 100644 --- a/salt/elasticsearch/templates/component/so/detection-mappings.json +++ b/salt/elasticsearch/templates/component/so/detection-mappings.json @@ -62,6 +62,10 @@ "ignore_above": 1024, "type": "keyword" }, + "license": { + "ignore_above": 1024, + "type": "keyword" + }, "overrides": { "properties": { "type": { @@ -106,6 +110,24 @@ } } } + }, + "so_comment": { + "properties": { + "createTime": { + "type": "date" + }, + "detectionId": { + "ignore_above": 1024, + "type": "keyword" + }, + "description": { + "type": "text" + }, + "userId": { + "ignore_above": 1024, + "type": "keyword" + } + } } } }