随笔分类 -  ELK

摘要:Elasticsearch索引只读问题 背景 手上项目在线上正常运行,数据库中有数据更改后,数据未同步到es对应的索引中 原因 将elasticsearch和logstash的日志下载下来后发现es日志中有很多行提示: 2021-10-21T23:53:03.448528162Z {"type": 阅读全文
posted @ 2021-10-23 10:55 阿伦啊 阅读(696) 评论(0) 推荐(0) 编辑
摘要:Elasticsearch 字段缺失排序和自定义排序 例题1 现有需求需按照有vr图的数据排在最前,再后面是有图片的数据,最后是既没有vr图也没有图片的数据 先使用ES的字段缺失排序实现 { "from": 0, "size": 10, "query": { "bool": { "filter": 阅读全文
posted @ 2021-10-13 17:20 阿伦啊 阅读(3623) 评论(0) 推荐(0) 编辑
摘要:普通排序 GET /my-index-000001(索引名)/_search { "sort": [ { "post_date": { "order": "asc" } }, "user", { "name": "desc" }, { "age": "desc" }, "_score" ], "qu 阅读全文
posted @ 2021-09-27 18:04 阿伦啊 阅读(3091) 评论(0) 推荐(0) 编辑
摘要:Elasticsearch是什么 Elasticsearch是一个基于Lucene的搜索服务器。它提供了一个分布式多用户能力的全文搜索引擎,基于RESTful web接口。Elasticsearch是用Java语言开发的,并作为Apache许可条款下的开放源码发布,是一种流行的企业级搜索引擎。Ela 阅读全文
posted @ 2021-09-24 16:18 阿伦啊 阅读(553) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示