Elasticsearch 8 new Java client - How to convert UpdateResponse to POJO

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

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.