How to implement useful facet aggregations?

I have filtered query with 3 filters - "query": "iphone", color:5,
category:10, brand:25

How can i get amount of products in each brand which have color:5 and
category:10?

In Solr i did it like: facet.field={!ex=tag_facet_brand}facet_brand

How can i exclude 1 filter from aggregation context? (i can't use global,
because i loose query:iphone, i can't use post_filter - because of
performance)

--
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/ee675913-282a-42a8-9448-9c4853336ee4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

In Solr i did it like:
fq={!tag=tag_facet_brand}facet_brand:"564"&facet.field={!ex=tag_facet_brand}facet_brand

--
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/e62d38c2-9f83-49a9-aaec-63c0e5a78024%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.