Skip to content

Commit 9b03073

Browse files
authored
[ML] Add dynamic templates for anomalies results index (#118845) (#118885)
This PR enables the resolution of field names containing "." after the rollover of the anomalies results index. This way, the object parts of the field name, e.g., for an influencer, will indeed have the object type and can be resolved in search and filter operations.
1 parent 0784601 commit 9b03073

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

x-pack/plugin/core/template-resources/src/main/resources/ml/anomalydetection/results_index_mappings.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,15 @@
55
},
66
"dynamic_templates" : [
77
{
8-
"strings_as_keywords" : {
8+
"map_objects": {
9+
"match_mapping_type": "object",
10+
"mapping": {
11+
"type": "object"
12+
}
13+
}
14+
},
15+
{
16+
"non_objects_as_keywords" : {
917
"match" : "*",
1018
"mapping" : {
1119
"type" : "keyword"

0 commit comments

Comments
 (0)