Hi Im trying to emulate the anomaly explorer in a vega visualization, at first I think that a top hit agreggation will get me similar results, like this query:
POST /.ml-anomalies-*/_search
{
"size": 0,
"aggs": {
"top_score": {
"top_hits": {
"sort": [
{
"record_score": {
"order": "desc"
}
}
],
"_source": {
"includes": [
"actual",
"typical",
"partition_field_value",
"record_score",
"timestamp",
"by_field"
]
},
"size": 10
}
}
}
}
but after seeing this anomaly explorer for a job, I realize that is more than just a top hit aggregation
what will be the query to obtain similar results and display them in vega?