فهرست منبع

[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.
Valeriy Khakhutskyy 10 ماه پیش
والد
کامیت
9b03073b1e

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

@@ -5,7 +5,15 @@
   },
   "dynamic_templates" : [
     {
-      "strings_as_keywords" : {
+      "map_objects": {
+        "match_mapping_type": "object",
+        "mapping": {
+          "type": "object"
+        }
+      }
+    },
+    {
+      "non_objects_as_keywords" : {
         "match" : "*",
         "mapping" : {
           "type" : "keyword"