Error Details:
java.io.IOException: Unable to parse response body for Response{requestLine=POST /_bulk?timeout=1m HTTP/1.1, host=eu-west-1.es.amazonaws.com, response=HTTP/1.1 200 OK}
Tried to investigate and I see the object send is org.elasticsearch.action.bulk.Response rather than the expected is org.elasticsearch.action.bulk.BulkResponse
Looked into the documentations as well but no luck.
Some important information on dependency and es method we are trying to execute from our Spring Boot Application:
java 11
spring-boot-starter-parent 2.5.6
spring-data-elasticsearch 4.2.6
elasticsearch-rest-high-level-client 7.12.1
org.elasticsearch 7.12.1
code: BulkResponse bulkResponse = elasticsearchClient.bulk(bulkRequest,RequestOptions.DEFAULT);