public SearchResponse scroll(String scrollId) throws IOException {
log.debug("ScrollId: {}", scrollId);
Scroll scroll = new Scroll(TimeValue.timeValueMinutes(5L));
SearchScrollRequest scrollRequest = new SearchScrollRequest(scrollId);
scrollRequest.scroll(scroll);
return esClient.getHighLevelClient().scroll(scrollRequest, RequestOptions.DEFAULT);
}
For ex: i have created a search request with 1000
is there any way to change the size to 500 while crolling.