Created
September 7, 2020 12:57
-
-
Save Demacr/d194d1dee4ba16f3aa241ba3a0048827 to your computer and use it in GitHub Desktop.
Merging indexes into one and deleting old
This file contains 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 -XPOST 'localhost:9200/_reindex?pretty' -H 'Content-Type: application/json' -d' | |
{ | |
"conflicts": "proceed", | |
"source": { | |
"index": "datas-*" | |
}, | |
"dest": { | |
"index": "newdataindex", | |
"op_type": "create" | |
} | |
} | |
' | |
curl -X DELETE localhost:9200/datas-* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment