# 查询别名指向到哪个索引
GET table_factory_search/_alias
# 查询这个索引使用了什么别名
GET table_factory_search_1588250935622/_alias
# 删除索引
DELETE table_factory_search_1588250935622
# 1、新建别名
POST /_aliases
{
"actions": [
{
"add": {
"index": "table_factory_search_1588250935627",
"alias": "table_factory_search"
}
}
]
}
2、别名切换
POST /_aliases
{
"actions": [
{
"remove": {
"index": "table_hit_quarter_20220506",
"alias": "table_hit_quarter"
}
},
{
"add": {
"index": "table_hit_quarter_20220508",
"alias": "table_hit_quarter"
}
}
]
}