Nested aggregation with filter on bucket level


Taking the basic example from official

How would you write a query that gets you average number of stars for
specific month (not for all months). I guess month filter needs to be
applied for one of the aggs there. I have tried to add filters to
"by_month" and "comments" parts but both didn't work.


You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
For more options, visit