Reindex legacy backing indices Technical preview

POST /_migration/reindex

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.

application/json

Body Required

  • mode string Required

    Value is upgrade.

  • source object Required
    Hide source attribute Show source attribute object

Responses

  • 200 application/json
    Hide response attribute Show response attribute object
    • acknowledged boolean Required

      For a successful response, this value is always true. On failure, an exception is returned instead.

POST /_migration/reindex
curl \
 --request POST 'http://api.example.com/_migration/reindex' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"mode":"upgrade","source":{"index":"string"}}'