-
Notifications
You must be signed in to change notification settings - Fork 24.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ML] adding result_type and mlcategory fields to category definitions #63326
[ML] adding result_type and mlcategory fields to category definitions #63326
Conversation
Pinging @elastic/ml-core (:ml) |
I opted to not add these fields to the HLRC as they don't seem to add any value there. Especially since result type would just be ignored and mlcategory is simply category_id. |
...lugin/core/src/main/java/org/elasticsearch/xpack/core/ml/job/results/CategoryDefinition.java
Outdated
Show resolved
Hide resolved
...lugin/core/src/main/java/org/elasticsearch/xpack/core/ml/job/results/CategoryDefinition.java
Outdated
Show resolved
Hide resolved
...lugin/core/src/main/java/org/elasticsearch/xpack/core/ml/job/results/ReservedFieldNames.java
Outdated
Show resolved
Hide resolved
...lugin/core/src/main/java/org/elasticsearch/xpack/core/ml/job/results/CategoryDefinition.java
Show resolved
Hide resolved
run elasticsearch-ci/packaging-sample-windows |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I changed the label from >non-issue
to >enhancement
, as I think some people would find this interesting to know about.
…elastic#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 elastic#60108
…#63326) (#63412) 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 Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
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 storethe
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