Skip to content

Instantly share code, notes, and snippets.

@TomonoriSoejima
Last active June 15, 2017 01:18
Show Gist options
  • Save TomonoriSoejima/f60661d307fc6cc24cc083e2ff150b5d to your computer and use it in GitHub Desktop.
Save TomonoriSoejima/f60661d307fc6cc24cc083e2ff150b5d to your computer and use it in GitHub Desktop.
reindex sample
delete old new
PUT old/test/1
{
"name" : "Sam"
}
POST _reindex
{
"source": {
"index": "old"
},
"dest": {
"index": "new"
}
}
delete old
POST /_aliases
{
"actions" : [
{ "add" : { "index" : "new", "alias" : "old" } }
]
}
GET old/_search
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment