I have a filter query with 3 filters: "query": "iphone", color:5, category:10, brand:25
.
How can I get the number of products in each brand which has color:5
and category:10
?
In Solr I did it like:
fq={!tag=tag_facet_brand}facet_brand:"564"&facet.field={!ex=tag_facet_brand}facet_brand
How can I exclude 1 filter from the aggregation context? (I can't use global, because I lose query:iphone
, and I can't use post_filter - because of performance).