Migration Upgrade with Task API

edit

Submission of upgrade request task will requires the IndexUpgradeRequest and will return IndexUpgradeSubmissionResponse. The IndexUpgradeSubmissionResponse can later be use to fetch TaskId and query the Task API for results.

IndexUpgradeRequest request = new IndexUpgradeRequest("test");

TaskSubmissionResponse response = client.migration()
    .submitUpgradeTask(request, RequestOptions.DEFAULT);
String taskId = response.getTask();