# Scrolling for Paging?

**URL:** https://discuss.elastic.co/t/scrolling-for-paging/9006
**Category:** Elasticsearch
**Created:** [September 13, 2012, 12:28am UTC](https://discuss.elastic.co/t/scrolling-for-paging/9006 "2012-09-13T00:28:14Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![phill](https://avatars.discourse-cdn.com/v4/letter/p/779978/32.png) [@phill](https://discuss.elastic.co/u/phill)
#### Post date: [September 13, 2012, 12:28am UTC](https://discuss.elastic.co/t/scrolling-for-paging/9006/1 "2012-09-13T00:28:14Z")

</div>

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  
\_search?scroll=5m&scroll\_id=....

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."  
-- [http://www.elasticsearch.org/guide/reference/api/search/scroll.html](http://www.elasticsearch.org/guide/reference/api/search/scroll.html)

-Paul

--

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 6, 2017, 3:12am UTC](https://discuss.elastic.co/t/scrolling-for-paging/9006/2 "2017-07-06T03:12:59Z")

</div>


