You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ML] adding result_type and mlcategory fields to category definitions (#63326)
To easy correlation between anomaly results and category definitions, this commit adds a new keyword mapped field `mlcategory`.
This field is always the same as the `category_id` field (which is mapped as a long). But since anomaly results store
the `mlcategory` as a keyword, it simplifies queries if category_definitions also had this field as a keyword.
The stored JSON is a `string`.
Additionally, this commit adds a `result_type: category_definition` entry to category definition documents.
This will help simplify and unify result queries in the future.
closes#60108
Copy file name to clipboardExpand all lines: x-pack/plugin/core/src/main/resources/org/elasticsearch/xpack/core/ml/anomalydetection/results_index_mappings.json
Copy file name to clipboardExpand all lines: x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/ml/job/persistence/ElasticsearchMappingsTests.java
+3
Original file line number
Diff line number
Diff line change
@@ -95,6 +95,9 @@ public void testResultsMappingReservedFields() throws Exception {
0 commit comments