前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >ElasticSearch 6.x 学习笔记:18.复合查询

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

作者头像
程裕强
发布2022-05-06 19:14:59
3230
发布2022-05-06 19:14:59
举报
【这一节先占个坑,后面再更新】

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

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2018-01-18,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 【这一节先占个坑,后面再更新】
  • 18.1 constant_score查询
  • 18.2 bool查询(逻辑查询)
相关产品与服务
Elasticsearch Service
腾讯云 Elasticsearch Service(ES)是云端全托管海量数据检索分析服务,拥有高性能自研内核,集成X-Pack。ES 支持通过自治索引、存算分离、集群巡检等特性轻松管理集群,也支持免运维、自动弹性、按需使用的 Serverless 模式。使用 ES 您可以高效构建信息检索、日志分析、运维监控等服务,它独特的向量检索还可助您构建基于语义、图像的AI深度应用。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档