elasticsearch
文章平均质量分 65
LiuLei_2015
这个作者很懒,什么都没留下…
展开
-
ES索引创建报错cannot be changed from type
Exception in thread "dta-async-thread2" ElasticsearchStatusException[Elasticsearch exception [type=illegal_argument_exception, reason=mapper [myIndexField] cannot be changed from type [long] to [integer]]] at org.elasticsearch.rest.BytesRestRespons原创 2023-09-15 18:40:51 · 1530 阅读 · 0 评论 -
ES聚合结果出现sum_other_doc_count大于0
ES在聚合、检索数据时,为了保证效率,在不对数量做主动设置时,只会用最小量的数。检索文档默认只会查询10条数据,想必大家都知道。但是,聚合,也是如此。当我们给聚合字段没有设置size时,那ES“偷懒”就只会查询10条数据。所以,你会发现,即使你查询了100条数据,聚合时,只出现了10条。并且会有sum_other_doc_count大于0。如下图查询所示:当我我们把第一个聚合数据改成大于检索数据总量时,原创 2023-03-29 19:04:18 · 751 阅读 · 0 评论 -
ES实战:通过kibana配置滚动索引
ES索引的生命周期管理,即ILM,是如何操作的呢?Kibana中可以直接配置。让我们一起一步步配置出来吧。原创 2023-03-17 18:42:27 · 1235 阅读 · 0 评论 -
Validation Failed: 1: No aggregation found for path [xx>yyy]
"type":"action_request_validation_exception","reason":"Validation Failed: 1: No aggregation found for path [xxx>yy];"}]ES聚合查询报bucketPath找不到。原创 2022-11-24 20:37:37 · 992 阅读 · 2 评论 -
Elasticsearch分页查询起始序号默认是0
一、Elasticsearch分页查询起始序号默认是0官方文档地址:https://www.elastic.co/guide/en/elasticsearch/reference/7.17/search-search.html关键字:from二、SpringData的org.springframework.data.domain.PageRequest用于构造分页查询对象,默认起始页号也是0。我们看一下PageRequest的源码发现,page参数也是从0开始的。恍然大悟!所以当前端的朋原创 2022-04-06 14:09:08 · 1764 阅读 · 0 评论 -
Elasticsearch Java API Client [7.17] Install 出现 jakarta.json.JsonException
Elasticsearch Java API Client [7.17] Install 出现 jakarta.json.JsonException原创 2022-02-17 14:29:59 · 4177 阅读 · 2 评论 -
Kibana server is not ready yet的解决实(windows版)
Kibana server is not ready yetd的处理实践原创 2022-02-16 11:31:45 · 5068 阅读 · 0 评论