You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the feature: Ability to retain only the top N buckets given an aggregated metric on parent buckets. This would be similar to the bucket_selector aggregation (which removes buckets based on a script).
Example: Given a filters aggregation that's provided with 300 filters, we have a sub-aggregation that calculates a metric. We only want the results of buckets having the 5 largest values of the aggregated metric. Today, without a "Top N bucket selector" aggregation, the client has to retrieve all 300 and sort/filter on client side.