Created
October 17, 2016 15:33
-
-
Save danielef/98f192bf918c4eceda52c156729a9eb3 to your computer and use it in GitHub Desktop.
Elasticsearch rename index
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
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