首页 > 其他 > 详细

Elasticsearch常用脚本

时间:2021-02-06 15:50:39      阅读:26      评论:0      收藏:0      [点我收藏+]

1、检测集群是否健康。 确保9200端口号可用

GET http://127.0.0.1:9200/_cat/health?v

curl http://127.0.0.1:9200/_cat/health?v

2、获取集群的节点列表

GET http://127.0.0.1:9200/_cat/nodes?v

3、列出所有索引

GET http://127.0.0.1:9200/_cat/indices?v

4、添加索引

在管理平台手动添加

5、添加文档

PUT http://127.0.0.1:9200/telnum_fee_index/_mapping/telnum_fee_type

6、index追加字段

PUT http://127.0.0.1:9200/call_record_index/_mapping/call_record_type

7、设置ES最大每页数据

PUT http://127.0.0.1:9200/telnum_fee_index/_settings

Elasticsearch常用脚本

原文:https://www.cnblogs.com/henry-2020/p/14381576.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!