ElasticSearch - how to exclude filter from 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: fq={!tag=tag_facet_brand}facet_brand:"564"&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). 回答1: We are just moving from SOLR and we are facing the