Last active
June 15, 2017 01:18
-
-
Save TomonoriSoejima/f60661d307fc6cc24cc083e2ff150b5d to your computer and use it in GitHub Desktop.
reindex sample
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
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