我使用3个过滤器过滤了查询:"query": "iphone", color:5, category:10, brand:25
。ElasticSearch - 如何从聚合中排除过滤器?
我怎样才能在拥有color:5
和category:10
每个品牌的产品量?
Solr中我做到了像:
fq={!tag=tag_facet_brand}facet_brand:"564"&facet.field={!ex=tag_facet_brand}facet_brand
我怎样才能排除聚合上下文1个过滤器? (我不能使用全局,因为我松散query:iphone
,我不能使用post_filter - 因为性能)。
您是否找到解决方案? – 2014-10-16 08:52:13
是的,经过一段时间的生产和实验后,“全球化”解决方案:{}, - 是我发现的最佳可能性。它的工作速度并不是很快,但是对于缓存来说它具有可接受的性能 – user3093816 2015-01-06 06:36:35
相关问题:http://stackoverflow.com/q/12014571/490018。 – 2015-11-25 15:00:10