scroll

suspend fun SearchClient.scroll(scrollId: String, scroll: Duration = 60.seconds): SearchResponse


Scroll through search results for a scrolling search.

To start a scrolling search, simply set the scroll parameter to a suitable duration on a normal search (keep alive for the scroll). The response that comes back will have a scroll_id. Then simply pass the response object to the scroll function, and it will scroll the results.

Return

a flow of hits for the scrolling search.