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

    Additional properties are allowed.

    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"}}'
Request examples
{
  "mode": "upgrade",
  "source": {
    "index": "string"
  }
}
Response examples (200)
{
  "acknowledged": true
}