【这一节先占个坑,后面再更新】
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