
{
"actions": [
{
"add": {
"index": "my_index",
"alias": "my_index_alias"
}
}
]
}
POST /_aliases
{
"actions": [
{
"remove": {
"index": "my_index_v1",
"alias": "my_index"
}
},
{
"add": {
"index": "my_index_v2",
"alias": "my_index"
}
}
]
}
GET/*/_alias/my_index //查某个别名映射的所有index
GET /my_index_v1/_alias/*//查询某个index拥有的别名
solution:重建索引,在建新索引时候做字段的迁移,达到修改index/mapping目的
字段迁移
ref: https://www.cnblogs.com/bigbigtree/p/6829625.html
(仅参考)
ref: https://www.jianshu.com/p/a46fc9fce199
index别名 ref: https://www.cnblogs.com/bigbigtree/p/6829625.html
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)