-
Notifications
You must be signed in to change notification settings - Fork 24.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add alias action that deletes an index #20064
Comments
@clintongormley, we discussed this earlier today. It is an important precondition to doing #20024 and good even if we decide not to do #20024. |
Great Nik. The only thing is that I'd change |
Yeah, I'll do that. I noticed yesterday that this is one place where we On Aug 19, 2016 7:33 AM, "Clinton Gormley" [email protected] wrote:
|
+1 |
While removing an index isn't actually an alias action, if we add an alias action that deletes an index then we can delete and index and add an alias with the same name as the index atomically, in the same cluster state update. Closes elastic#20064
If we add an alias action that deletes an index then we can swap an existing index with an alias in one request which applies the cluster state change atomically. This is quite useful because while the best practice is to address Elasticsearch indexes through aliases not everyone does that all the time. This will give folks who aren't using an alias an easy way to do it. Something like:
It is super nice to do this in one action because:
The text was updated successfully, but these errors were encountered: