我使用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