Nested aggregation with filter on bucket level

Hi,

Taking the basic example from official
documentation http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/nested-aggregation.html

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.

Cheers.

--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/6cd318a8-cbdb-45b8-9859-c4c79fc60566%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.