当前位置:网站首页>ES复杂操作搜索
ES复杂操作搜索
2022-08-10 09:48:00 【小染r】
复杂操作搜索 select(排序,分页,高亮,模糊查询,精准查询!)
结果的过滤:相当于select name,desc …
我们之后使用Java操作es的时候,所有的方法和对象就是这里面的key !
排序

分页 相当于limit

布尔值查询
must(and),所有的条件都要符合 where name =‘xxx’ and age =23
must(or), 或者 where name =‘xxx’ or age =23

must(not) 不是
过滤器 filter
- gt :大于
- gte:大于等于
- lt:小于
- lte:小于等于

匹配多个条件

精确查询
term 查询是直接通过倒排索引指定的词条进行精确的查找的!
关于分词:
- term, 直接查询精确的值
- match: 会使用分词器解析!(先分析文档,然后再通过分析的文档进行查询)
两个类型 text keyword
text 类型可以被分词器解析
keyword 类型不可以被分词器解析

多个值匹配精确查询

高亮查询


总结:这些其实Mysql 也可以做,只是Mysql的效率比较低
- 匹配
- 按照条件匹配
- 精确匹配
- 区间范围匹配
- 匹配字段过滤
- 多条件查询
- 高亮查询
- 倒排索引
边栏推荐
- 数据库中的schema
- FPGA时钟篇(二) 7系列clock region详解
- Guo Jingjing's personal chess teaching, the good guy is a robot
- 中国驻越南使馆提醒在越北部、中部地区中国公民做好台风“木兰”安全防范
- 【数据库架构】OLTP 和 OLAP:实际比较
- 「应用架构」TOGAF建模:应用程序迁移图
- 消息队列概述
- 「业务架构」TAGAF建模:业务服务/信息图
- CAD to WPF: Tips on converting CAD drawing files to WPF vector code files (xaml files)
- [Metaverse Omi Says] Listen to how Rabbit Fan Rabbit creates a new era of trendy play from virtual to reality
猜你喜欢
随机推荐
【企业架构】敏捷与企业架构:战略联盟
绘制温度曲线图;QChart,
线程池的基本概念、结构、类
09 【Attributes继承 provide与inject】
2022-08-09 第六小组 瞒春 学习笔记
FPGA时钟篇(二) 7系列clock region详解
Flink快速上手 完整使用 (第二章)
FPGA时钟篇(一) 7系列的时钟结构
How to understand the difference between BIO, NIO, and AIO
多租户技术
jq封装树形下拉选择框组件
多线程浅谈
go web之cookie
Relearn bubble sort
LCD DRM驱动框架分析一
LCD DRM驱动框架分析二
【Software Exam System Architect】Case Analysis ⑥ Web Application System Architecture Design
《广州市公路工程安全生产监督管理办法》印发,从六大方面进行修订
【数据架构】概念数据模型和逻辑数据模型有什么区别
90.(cesium之家)cesium高度监听事件
![[Data Architecture] Distributed Data Grid as a Solution for Centralized Data Monolith](/img/99/b22268e3e47db9e9caad58722e8709.png)







