我已经在AWS ElasticSearch中部署了名为users-version-1-order-1
的模板,并在users-all
索引下建立了索引数据,可以通过users
别名进行搜索。
因此,所有文档总是在users-all
中进行索引和更新,如何在应用新模板版本的情况下应对架构更改?例如放入users-version-2-order-2
并将其应用于users-all
索引。
[更新]
{
"index_patterns": "users*",
"order": 6,
"version": 6,
"aliases": {
"users": {}
},
"settings": {
"number_of_shards": 5
},
"mappings": {
"_doc": {
"dynamic": "strict",
"properties": {
"id": { "type": "keyword" },
"emailAddress": { "type": "keyword" }
}
}
}
}