-
Notifications
You must be signed in to change notification settings - Fork 24.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
top_hits and sub-aggregations #16537
Comments
because the On 9 February 2016 at 16:01, Sergei Egorov notifications@github.com wrote:
Met vriendelijke groet, Martijn van Groningen |
@martijnvg I use "sort" from top_hits for such decisions. Also, I need to calculate median of exactly last N hits in each category, I can't calculate median (aka 50th percentile) of all hits :( |
This sounds like you will need to postprocess your results on the client. As @martijnvg says, metric aggs can't support sub-aggs. |
Hi!
Why top_hits doesn't allow to have sub-aggregations?
I.e. I want to calculate a median of last N hits in each category
The text was updated successfully, but these errors were encountered: