Created
June 16, 2014 06:22
-
-
Save ThomasArdal/9f8b039637e9bb826f53 to your computer and use it in GitHub Desktop.
Delete Elasticsearch index and create alias
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
elasticClient.DeleteIndex(d => d.Index("customers-v1")); | |
elasticClient.Alias(x => x.Add(a => a.Alias("customers").Index("customers-v2"))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment