-
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
Keyword support or alternative for top_metrics aggregation #64774
Comments
Pinging @elastic/es-analytics-geo (:Analytics/Aggregations) |
I did a little looking into this yesterday afternoon and made some progress. I think a global-ords-based solution is something we could have fairly easily. The trouble is that most of the time when we have global ords implementations they are speed ups for a "Map" based solution as well. I don't think a map based solution would work as well in this situation. But I'll have a think. Would it be ok to only do global ords at first? That means that things like runtime fields wouldn't work here. |
@nik9000 we are not using runtime fields, so I'm (selfishly) totally okay with leaving that out. |
I think starting with Ordinals is ok as well. Incremental improvements and all that. 👍 |
Adds support for fetching `keyword` and `ip` fields in `top_metrics`. This only works if we can get global ordinals for those fields so we can't support the entire `keyword` family, but this gets us *somewhere*. Closes elastic#64774
Adds support for fetching `keyword` and `ip` fields in `top_metrics`. This only works if we can get global ordinals for those fields so we can't support the entire `keyword` family, but this gets us *somewhere*. Closes #64774
Adds support for fetching `keyword` and `ip` fields in `top_metrics`. This only works if we can get global ordinals for those fields so we can't support the entire `keyword` family, but this gets us *somewhere*. Closes elastic#64774
In APM, we use a top_hits aggregation in some places to get certain values for the UI. E.g., if we are aggregation over
service.name
, we also needagent.name
or each value ofservice.name
. Atop_hits
aggregation can be costly, especially when there are many buckets.Recently
top_metrics
was introduced as a lighter, faster alternative to top_hits. However, it does not support keywords (yet).We would benefit from having top_metrics support keywords or a different aggregation that does the same, but for keywords.
The text was updated successfully, but these errors were encountered: