注意:index名字不支持大写字母
1、获取集群健康状态
GET _cluster/health
GET /_cat/health
2、查询已有的所有index状态
GET _cat/indices
GET _cat/indices?v 信息更全面
3、删除index
DELETE index名
4、复制index
POST _reindex
{
"source": {
"index": "oldIndex" //原来的index
},
"dest": {
"index": "newIndex" //新index 起初可以不存在 会自动创建,并复制数据
}
}
5、index取别名
PUT indexname/_alias/别名
6、别名 切换真实指向的index
POST /aliases
{
"actions":[
{