ElasticSearch 6.x 学习笔记:18.复合查询




【这一节先占个坑,后面再更新】

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




  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值