![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Elasticsearch
果儿妈
IT职业女性
展开
-
Elasticsearch常用查询命令汇总
Elasticsearch 常用查询命令汇总一、_cat操作_cat系列提供了一系列查询elasticsearch集群状态的接口。你可以通过执行curl -XGET localhost:9200/_cat获取所有_cat系列的操作/_cat/allocation/_cat/shards/_cat/shards/{index}/_cat/master/_cat/nodes/_cat/indices/_cat/indices/{index}/_cat/segments/_cat转载 2020-06-09 14:51:42 · 1245 阅读 · 0 评论 -
基于kibana的Dev Tools控制板上es常用查询语句
基于kibana的Dev Tools控制板的es常用查询语句:1、集群相关--- 查询集群健康状态 GET _cluster/health--- 查询所有节点 GET _cat/nodes--- 查询索引及分片的分布 GET _cat/shards--- 查询所有插件 GET _cat/plugins2、索引相关查询--- 查询所有索引及容量 GET _cat/indices--- 查询索引映射结构 GET my_index转载 2020-06-09 14:33:16 · 828 阅读 · 0 评论 -
Elasticsearch搜索引擎的常用方法(三) 查找10000条数据之后的数据
问题:es本身默认限制了查找的量为10000条,即 from+size<=10000报错:Result window is too large, from + size must be less than or equal to:[10000] but was [10010]. See the scroll api for a more efficient way to requestlarge data sets. This limit can be set by changi...转载 2020-06-09 11:35:28 · 2586 阅读 · 0 评论 -
Elasticsearch搜索引擎的常用方法(二) term和terms,match,range,sort等
1、term和termsterm和terms等查询,不会对查询对字段进行分词处理,适合于date、num、id等确切数据进行搜索如果需要查询keywords,则查询等keywords必须是查询字段中可以分出来的词,如果不是,则无法查询到数据。例如:age字段包含的值为80后、90后。使用term查询,{"term":{"age":"80后"}} 这样是无法查询到age是"80后"的数据的,因为term不会对"80后"进行分词,而es中存储的age字段,会把"80后"分成“80”和“后”,没有“80转载 2020-06-09 11:36:31 · 2895 阅读 · 1 评论 -
Elasticsearch搜索引擎的常用方法(一) filter和query
一、filter不计算相关性的,因此filter速度快于query。1、filter单条件查询# 查找age=25的数据GET index_1/_search{ "query": { "bool": { "filter": { "term": { "age": "25" } } } }}2、filter多条件查询# 查询年龄90后,教育中专的数据GET index_1...转载 2020-06-09 11:36:41 · 548 阅读 · 0 评论