I am using the new Java client (v8.3.1) for Elasticsearch 8, and I could not find a way to convert the update response (UpdataResponse) to a POJO. The example code is as following:
UpdateResponse response = esClient.update(u -> u
.index("product")
.id(id)
.doc(etlJobControl),
Product.class);
It would be greatly appreciated if anyone could help me with this.
Thanks