# Inconsistent paging

**URL:** <https://discuss.elastic.co/t/inconsistent-paging/19314>\
**Category:** Elasticsearch\
**Created:** [August 18, 2014, 4:38am UTC](https://discuss.elastic.co/t/inconsistent-paging/19314 "2014-08-18T04:38:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ronsher](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ronsher/32/1334_2.png) [@ronsher](https://discuss.elastic.co/u/ronsher)\
**Post date:** [August 18, 2014, 4:38am UTC](https://discuss.elastic.co/t/inconsistent-paging/19314/1 "2014-08-18T04:38:16Z")

</div>

We've noticed a strange behavior in elasticsearch during paging.

In one case we use a paging size of 60 and we have 63 documents. So the  
first page is using size 60 and offset 0. The second page is using size 60  
and offset 60.

What we see is that the result is inconsistent. Meaning, on the 2nd page, we  
sometimes get results that were before in the 1st page.

The query we use has an order by some numberic field that has many documents  
with the same value (0).  
It looks like the ordering between documents according to the same value,  
which is 0, isn't consistent.

Did anyone encounter such behavior? Any suggestions on resolving this?

We're using version 1.3.1.

Thanks,  
Ron

--  
View this message in context: [http://elasticsearch-users.115913.n3.nabble.com/inconsistent-paging-tp4061986.html](http://elasticsearch-users.115913.n3.nabble.com/inconsistent-paging-tp4061986.html)  
Sent from the ElasticSearch Users mailing list archive at [Nabble.com](http://Nabble.com).

--  
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/1408336696765-4061986.post%40n3.nabble.com](https://groups.google.com/d/msgid/elasticsearch/1408336696765-4061986.post%40n3.nabble.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![vineeth\_mohan\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vineeth_mohan_2/32/747_2.png) [@vineeth\_mohan\_2](https://discuss.elastic.co/u/vineeth_mohan_2)\
**Post date:** [August 18, 2014, 8:37am UTC](https://discuss.elastic.co/t/inconsistent-paging/19314/2 "2014-08-18T08:37:42Z")

</div>

You have asked teh same question from another GMAIL ID.  
Please refer to the answers over there.

Thanks  
Vineeth

On Mon, Aug 18, 2014 at 10:08 AM, ronsher [ronsher@gmail.com](mailto:ronsher@gmail.com) wrote:

> We've noticed a strange behavior in elasticsearch during paging.
> 
> In one case we use a paging size of 60 and we have 63 documents. So the  
> first page is using size 60 and offset 0. The second page is using size 60  
> and offset 60.
> 
> What we see is that the result is inconsistent. Meaning, on the 2nd page,  
> we  
> sometimes get results that were before in the 1st page.
> 
> The query we use has an order by some numberic field that has many  
> documents  
> with the same value (0).  
> It looks like the ordering between documents according to the same value,  
> which is 0, isn't consistent.
> 
> Did anyone encounter such behavior? Any suggestions on resolving this?
> 
> We're using version 1.3.1.
> 
> Thanks,  
> Ron
> 
> --  
> View this message in context:  
> [http://elasticsearch-users.115913.n3.nabble.com/inconsistent-paging-tp4061986.html](http://elasticsearch-users.115913.n3.nabble.com/inconsistent-paging-tp4061986.html)  
> Sent from the Elasticsearch Users mailing list archive at [Nabble.com](http://Nabble.com).
> 
> --  
> 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/1408336696765-4061986.post%40n3.nabble.com](https://groups.google.com/d/msgid/elasticsearch/1408336696765-4061986.post%40n3.nabble.com)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/CAGdPd5%3DyZNSi7usuBuc88N26rXrOeZ0682VJq-6cFE281fkV2A%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGdPd5%3DyZNSi7usuBuc88N26rXrOeZ0682VJq-6cFE281fkV2A%40mail.gmail.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, 1:08am UTC](https://discuss.elastic.co/t/inconsistent-paging/19314/3 "2017-07-06T01:08:02Z")

</div>


