【这一节先占个坑,后面再更新】
https://www.elastic.co/guide/en/elasticsearch/reference/6.1/compound-queries.html
Compound queries wrap other compound or leaf queries, either to combine their results and scores, to change their behaviour, or to switch from query to filter context.
复合查询包装其他复合或term查询,可以将其结果和分数相结合,改变它们的行为,或者从查询切换到过滤器上下文。
18.1 constant_score查询
A query which wraps another query, but executes it in filter context. All matching documents are given the same “constant” _score.
包含另一个查询的查询,但在过滤器上下文中执行。 所有匹配的文件都被赋予相同的“常量”_score。
18.2 bool查询(逻辑查询)
https://www.elastic.co/guide/en/elasticsearch/reference/6.1/query-dsl-bool-query.html

本文介绍了Elasticsearch中的复合查询概念,包括constant_score查询和bool查询。constant_score查询将其他查询置于过滤器上下文中,并为所有匹配文档分配相同的得分。bool查询则允许通过must、should等子句来组合多个查询条件。
7030

被折叠的 条评论
为什么被折叠?



