I am upgrading the code to version 5.6.2 of ES from v2.3.3 . While I am trying to run the re-indexing utility(using java api's) I am getting error- "an id must be provided if version type or value are set".
The possible reason could be the breaking changes that have been made in v5.
Below is the loc where error occurs.
BulkResponse response = bulkRequestBuilder.setRefreshPolicy(Boolean.toString(refresh)).execute().actionGet();
I have tried setting the opType as INDEX in IndexRequestBuilder while adding them to bulkRequestBuilder, but that didn't help.