Skip to content

Instantly share code, notes, and snippets.

@Demacr
Created September 7, 2020 12:57
Show Gist options
  • Save Demacr/d194d1dee4ba16f3aa241ba3a0048827 to your computer and use it in GitHub Desktop.
Save Demacr/d194d1dee4ba16f3aa241ba3a0048827 to your computer and use it in GitHub Desktop.
Merging indexes into one and deleting old
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