问题
I have deployed a template in AWS ElasticSearch named users-version-1-order-1
, and indexed data under users-all
index which is searchable via users
alias.
So, all documents are always indexed and updated in users-all
, how do I deal with schema change moving forward with applying a new template version? e.g. PUT users-version-2-order-2
and apply it to users-all
index.
[UPDATE]
{
"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" }
}
}
}
}
来源:https://stackoverflow.com/questions/57698644/update-field-mappings-template-in-created-index-under-an-alias