Skip to content

Instantly share code, notes, and snippets.

@danielef
Created October 17, 2016 15:33
Show Gist options
  • Save danielef/98f192bf918c4eceda52c156729a9eb3 to your computer and use it in GitHub Desktop.
Save danielef/98f192bf918c4eceda52c156729a9eb3 to your computer and use it in GitHub Desktop.
Elasticsearch rename index
curl -X POST http://localhost:9200/_reindex -d '{
"source": {
"index": "twitter"
},
"dest": {
"index": "new_twitter"
}
}'
curl -X DELETE http://localhost:9200/twitter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment