居然是你

es在2.x中合并了filter和query,引入的context概念

Elasticsearch | 作者 mrxiaosen | 发布于2017年08月23日 | 阅读数:2899

The clause (query) should appear in the matching document. If the bool query is in aquery context and has a must or filter clause then a document will match the boolquery even if none of the should queries match. In this case these clauses are only used to influence the score. If the bool query is a filter context or has neither must or filterthen at least one of the should queries must match a document for it to match the boolquery. This behavior may be explicitly controlled by settings the minimum_should_matchparameter.
上述是摘自官网bool查询的should中的一段话。
如果bool query在query context中...
如果bool query在filter context中...
怎么确定bool query属于哪一个context呢?
已邀请:

要回复问题请先登录注册