Skip to content

Instantly share code, notes, and snippets.

@ThomasArdal
Created June 16, 2014 06:22
Show Gist options
  • Save ThomasArdal/9f8b039637e9bb826f53 to your computer and use it in GitHub Desktop.
Save ThomasArdal/9f8b039637e9bb826f53 to your computer and use it in GitHub Desktop.
Delete Elasticsearch index and create alias
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