How to retrieve bulk document from elasticsearch using Java HTTP client


We have around billions of documents in elastic search, we would like to do bulk retrieval from elastic using Java HTTP client. Can someone recommend best approach of doing this. It would be really helpful if any sample is available.



If you want to retrieve all your documents, you have to run a query match_all() ( using a scroll (


Thanks @xavierfacq!

Can we do the same thing using HTTP client?

yes you can !

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