随笔分类 -  Elasticsearch

摘要:🚨 Elasticsearch 排障实录:新建索引 RED / 旧索引正常 属性 详情 📁 环境 Windows Server + Elasticsearch 8.0.0 🐞 症状 新建索引瞬间 RED;旧索引读写正常;重启/删库无效 🎯 根因 磁盘占用 ≥ 90%,触发 Disk Wate 阅读全文
posted @ 2026-04-17 11:15 o李一波o 阅读(55) 评论(0) 推荐(0)
摘要:###由于ES不能像关系型数据库直接修改类型,所以要借助中间索引来完成 ####1、创建中间索引(字段维护正确的) ``` put: https://localhost/track_bak { "settings": { "index": { "number_of_shards": "3", "nu 阅读全文
posted @ 2023-06-09 09:42 o李一波o 阅读(894) 评论(0) 推荐(2)
摘要:###基本用法 安装Nest(安装后默认会装上Elasticsearch.Net),注意:版本尽量选择跟ES版本一致的 批量初始化数据到ES using Nest; try { // 测试环境SSL证书需要的设置 ServicePointManager.SecurityProtocol = Secu 阅读全文
posted @ 2023-03-31 11:12 o李一波o 阅读(572) 评论(0) 推荐(0)
摘要:###索引基本操作 ####创建索引: PUT /索引名 注意:索引名必须全部由小写字母组成 PUT /order ####查看所有索引: GET /_cat/indices?v ####查看单个索引: GET /索引名 GET /order ####删除索引: DELETE /索引名 DELETE 阅读全文
posted @ 2023-03-30 18:09 o李一波o 阅读(116) 评论(0) 推荐(0)
摘要:###下载: ###解压运行 ###验证kibna,访问:http://localhost:5601 阅读全文
posted @ 2023-03-30 17:19 o李一波o 阅读(66) 评论(0) 推荐(0)
摘要:#####第一次安装的是7.0版本,运维过程中发现与8.0还是有很多不同的地方 下载java jdk: 环境设置 下载ES: 解压压缩包 修改yml允许跨域,为后面head做准备 config->elasticsearch.yml增加下面配置(注意格式,:后面必须跟空格,结束不能带;号) http. 阅读全文
posted @ 2023-03-30 17:03 o李一波o 阅读(50) 评论(0) 推荐(0)
摘要:#Elasticsearch是面向文档(document oriented)的,可以存储整个文档,内容之间可以通过索引index检索 ##与关系型数据的区别 Relational DB -> Databases -> Tables -> Rows -> Columns Elasticsearch - 阅读全文
posted @ 2023-03-30 16:12 o李一波o 阅读(39) 评论(0) 推荐(0)