Exporting large set of data from elastic as CSV

Hi experts i need to export huge or entire data from particular index of elastic as csv .
Currently i have explored and using ScrollAPI whats my concern in this we need to loop it to get set of data until we get empty hits.
For example in query i had set the size to 10000 and consider getting 1 million data for this i need to loop 100 times.
Is this the way or is there any way than this to get huge or entire data using JAVA Client elastic library??

Yes this is the way to extract lot of data.
It has a big advantage which is that whatever data is added or removed while doing this, it doesn't change what you are going to extract.

Thanks a lot @dadoonet

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