I am currently upgrading the ES to v5.6.2 from 2.3.3. I am facing the issue: cannot resolve symbol isCreated() when the code tries to check whether the document was created/updated. Please find below the code-
IndexResponse response = indexRequestBuilder.setRefreshPolicy(Boolean.toString(refreshIndex)).execute().actionGet();
if (response == null || !response.isCreated()) {// error: cannot resolve isCreated()
throw new DaoRuntimeException(String.format("Unable to create a new document in ES. Index : %s/%s, id : %s, parentId : %s and source : %s", indexName, documentType, id, parentId, source));
}
Please help.