01 2024 档案

摘要:1、新增索引 #请求 put 192.168.1.139:9200/test11 { "mappings": { "properties": { "title": { "type": "text" }, "year": { "type": "date", "format": "yyyy" }, "t 阅读全文
posted @ 2024-01-19 12:19 锋大爷 阅读(255) 评论(0) 推荐(0) 编辑
摘要:介绍 顾名思义 就是为索引起一个 外号,一个别名 可以对应 多个索引;一个索引也可以对应多个别名。 场景很多 比如 order_202201,order_202202,order_202203 索引 起个别名 order,这样好处就是 可以关闭历史索引,加快查询数据。 比如 需求变更 导致 索引 m 阅读全文
posted @ 2024-01-19 12:05 锋大爷 阅读(65) 评论(0) 推荐(0) 编辑
摘要:1、创建一个 Elasticsearch 服务配置文件。 在 /lib/systemd/system/ 目录中创建一个名为 elasticsearch.service 的文件 vim /lib/systemd/system/elasticsearch.service 2、将以下内容复制到 elast 阅读全文
posted @ 2024-01-18 10:38 锋大爷 阅读(265) 评论(0) 推荐(0) 编辑

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