Reindex all legacy backing indices for a data stream. This operation occurs in a persistent task. The persistent task ID is returned immediately and the reindexing work is completed in that task.
POST
/_migration/reindex
Console
POST _migration/reindex
{
"source": {
"index": "my-data-stream"
},
"mode": "upgrade"
}
curl \
--request POST 'http://api.example.com/_migration/reindex' \
--header "Content-Type: application/json" \
--data '"{\n \"source\": {\n \"index\": \"my-data-stream\"\n },\n \"mode\": \"upgrade\"\n}"'
Request example
An example body for a `POST _migration/reindex` request.
{
"source": {
"index": "my-data-stream"
},
"mode": "upgrade"
}