https://www.elastic.co/blog/changeing-mapping-with-zero-downtime/
我尝试使用本指南创建一个新索引并以零停机时间重新索引我的数据。
现在我有一个名为“photoshooter”的索引,我按照步骤操作
1)使用新映射创建新索引“photoshooter_v1”...(完成)
2)创建别名...
curl -XPOST localhost:9200/_aliases -d '
{
"actions": [
{ "add": {
"alias": "photoshooter",
"index": "photoshooter_v1"
}}
]
}
我得到这个错误......
{
"error": "InvalidAliasNameException[[photoshooter_v1] Invalid alias name [photoshooter], an index exists with the same name as the alias]",
"status": 400
}
我想我在逻辑上失去了一些东西..