# Search Scroll issue

**URL:** <https://discuss.elastic.co/t/search-scroll-issue/23329>\
**Category:** Elasticsearch\
**Created:** [April 20, 2015, 4:52pm UTC](https://discuss.elastic.co/t/search-scroll-issue/23329 "2015-04-20T16:52:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shawn\_Feldman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shawn_feldman/32/759_2.png) [@Shawn\_Feldman](https://discuss.elastic.co/u/Shawn_Feldman)\
**Post date:** [April 20, 2015, 4:52pm UTC](https://discuss.elastic.co/t/search-scroll-issue/23329/1 "2015-04-20T16:52:00Z")

</div>

We are using scroll to do paging.

We are encountering an issue where the last result from the initial search  
appears as the first result in our scroll request.

so.. hits[length-1] == nextPageHits[0]

This only seems to occur after we do a large series of writes and searches.  
Initially it doesn't occur.

Is this behavior intended or a known issue?

-shawn

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/fce7ae9f-87ec-4956-926e-57328522ee2d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/fce7ae9f-87ec-4956-926e-57328522ee2d%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:18am UTC](https://discuss.elastic.co/t/search-scroll-issue/23329/2 "2017-07-06T00:18:38Z")

</div>


