# Duplicated results across pages in top\_children queries

**URL:** <https://discuss.elastic.co/t/duplicated-results-across-pages-in-top-children-queries/7168>\
**Category:** Elasticsearch\
**Created:** [March 28, 2012, 6:53pm UTC](https://discuss.elastic.co/t/duplicated-results-across-pages-in-top-children-queries/7168 "2012-03-28T18:53:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matthew\_A\_Brown](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matthew_a_brown/32/2699_2.png) [@Matthew\_A\_Brown](https://discuss.elastic.co/u/Matthew_A_Brown)\
**Post date:** [March 28, 2012, 6:53pm UTC](https://discuss.elastic.co/t/duplicated-results-across-pages-in-top-children-queries/7168/1 "2012-03-28T18:53:18Z")

</div>

Howdy Shay (and world of ElasticSearch),

We briefly discussed on IRC the phenomenon where when performing a  
top\_children query in a paginated fashion (using "from" and "size"  
params to paginate), it's possible that the same result document may  
appear in multiple pages. You indicated that this is a known issue  
with top\_children, and that increasing the "factor" would help  
alleviate duplication.

My question is whether this is considered a bug (and thus slated for a  
fix at some point) or more of an irreducible fact about the way  
top\_children works. I'm mostly just trying to determine whether our  
application needs to be robust around potential duplication in the  
long run.

Thanks!  
Mat

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [March 29, 2012, 2:10pm UTC](https://discuss.elastic.co/t/duplicated-results-across-pages-in-top-children-queries/7168/2 "2012-03-29T14:10:05Z")

</div>

Good question :), thats the state currently, I need to spend some time  
thinking about ti to see if it can be fixed or thats simply the case with  
top\_children...

On Wed, Mar 28, 2012 at 8:53 PM, Matthew A. Brown [mat.a.brown@gmail.com](mailto:mat.a.brown@gmail.com)wrote:

> Howdy Shay (and world of Elasticsearch),
> 
> We briefly discussed on IRC the phenomenon where when performing a  
> top\_children query in a paginated fashion (using "from" and "size"  
> params to paginate), it's possible that the same result document may  
> appear in multiple pages. You indicated that this is a known issue  
> with top\_children, and that increasing the "factor" would help  
> alleviate duplication.
> 
> My question is whether this is considered a bug (and thus slated for a  
> fix at some point) or more of an irreducible fact about the way  
> top\_children works. I'm mostly just trying to determine whether our  
> application needs to be robust around potential duplication in the  
> long run.
> 
> Thanks!  
> Mat

---

<div class="post-metadata">

**Author:** ![Matthew\_A\_Brown](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matthew_a_brown/32/2699_2.png) [@Matthew\_A\_Brown](https://discuss.elastic.co/u/Matthew_A_Brown)\
**Post date:** [March 29, 2012, 2:18pm UTC](https://discuss.elastic.co/t/duplicated-results-across-pages-in-top-children-queries/7168/3 "2012-03-29T14:18:18Z")

</div>

Thanks! Keep me posted : )

On Thu, Mar 29, 2012 at 10:10, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:

> Good question :), thats the state currently, I need to spend some time  
> thinking about ti to see if it can be fixed or thats simply the case with  
> top\_children...
> 
> On Wed, Mar 28, 2012 at 8:53 PM, Matthew A. Brown [mat.a.brown@gmail.com](mailto:mat.a.brown@gmail.com)  
> wrote:
> 
> > Howdy Shay (and world of Elasticsearch),
> > 
> > We briefly discussed on IRC the phenomenon where when performing a  
> > top\_children query in a paginated fashion (using "from" and "size"  
> > params to paginate), it's possible that the same result document may  
> > appear in multiple pages. You indicated that this is a known issue  
> > with top\_children, and that increasing the "factor" would help  
> > alleviate duplication.
> > 
> > My question is whether this is considered a bug (and thus slated for a  
> > fix at some point) or more of an irreducible fact about the way  
> > top\_children works. I'm mostly just trying to determine whether our  
> > application needs to be robust around potential duplication in the  
> > long run.
> > 
> > Thanks!  
> > Mat

---

<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:34am UTC](https://discuss.elastic.co/t/duplicated-results-across-pages-in-top-children-queries/7168/4 "2017-07-06T03:34:13Z")

</div>


