-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Custom Bucket Sub Aggregations and Top Hits #19096
Comments
Is it correct, that you are talking about configuration options for the region or coordinate/tile map? |
Coordinate Map |
Top hits has been implemented in Maps application, https://www.elastic.co/guide/en/kibana/current/maps-top-hits-aggregation.html, and produces requests like
For you other request about nesting geotile_grid aggregation under terms aggregation, this will produce problems with hitting cluster setting There is an open PR that implements the inverse of this, which is finding the top term per geotile_grid. Would a solution like this work for your use case? |
It is good to hear that Maps has added top hits. (Thanks) I think the PR you mentioned might work for the use case I noted. I am not sure, as we had to move away from the Kibana map plugin. It might make sense to close this issue at this point. |
I would like to a custom aggregation that either doesn't use geohash'ing or uses geohash as a sub-aggregation.
Imagine you are mapping schools or fast food restaurants. I'd like to aggregate by the school type (elementary, middle school, etc.) or restaurant chain name first, then map the metric of count, average, etc. In this case geohash, as a sub aggregation, is fine. (Basically, I have some term/identifier I'd like to use as first level aggregation.)
But I would also like to show the first or last school/restaurant opening, in which case I'd like a top_hits sub-aggregation and not use the geohash (or, in some cases use top_hits with the geohash).
To be more specific, if I have a
position
geopoint, the resulting aggregation the exising map visualization gets is:But assume I want a breakdown by brand (as in my earlier noted example), I would like the following aggregation/buckets:
I'd like more control over the aggregations and sub aggregations.
Thanks
The text was updated successfully, but these errors were encountered: