Closed
Description
Today it's possible to add an alias to an index mapping:
PUT foo
{
"mappings": {
"_doc": {
"properties": {
"a": {
"type": "keyword"
}
}
}
}
}
After adding an alias it's not possible AFAIK to remove it. This would be useful if someone applies aliases to many indices and then realises it was the wrong field and wants to change it.
To my surprise it is possible to modify existing aliases by adding the same mapping again with a different path. This is great and already allows to handle the case where the wrong path was set by mistake but the alias name is correct.