Setsize for java api elasticsearch

Thank you for your answer @Pakoenator. I also heard that scroll is the ideal solution for fetching the huge data from elasticsearch. If you have any example of Scroll please share it here.