I am writing a custom Elasticsearch plugin. I want to do encode the response values from aggregation response and get doc by id.
Using Elasticsearch v7.17.x
I want to know what are interface/classes to be used from Elasticsearch. Any sample code would be much more helpful