Scrolling for Paging?

(phill) #1

If I want to page through a sorted search result when a user hits the
next page button, I was assuming I could use the
//_search?scroll=5m followed by follow up with

Is this a good approach for paging? Or should I just be looking at
using "from" and "size"?
I'm not sure when I read the quote below. Since a particular users
search may not be a particularly large result.
I'm not doing any re-indexing, and I'm not worried about real-time searches.

   "Scrolling is not intended for real time user requests, it is 

intended for cases like scrolling over large portions of data that
exists within elasticsearch to reindex it for example."



(system) #2