# Scroll and parent / child

**URL:** https://discuss.elastic.co/t/scroll-and-parent-child/14726
**Category:** Elasticsearch
**Created:** [December 5, 2013, 12:56pm UTC](https://discuss.elastic.co/t/scroll-and-parent-child/14726 "2013-12-05T12:56:07Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Olivier\_Dolbeau](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/olivier_dolbeau/32/1943_2.png) [@Olivier\_Dolbeau](https://discuss.elastic.co/u/Olivier_Dolbeau)
#### Post date: [December 5, 2013, 12:56pm UTC](https://discuss.elastic.co/t/scroll-and-parent-child/14726/1 "2013-12-05T12:56:07Z")

</div>

Hi all !

I would like to make a scroll with a filtered query which contains filter  
on a child mapping.

The first query works fine. The "totalHits" value is correct and I can  
start scrolling.  
But when I ask for the first scroll, I have no result.

Without filter on the child index, no problem, the scroll works as expected.

Is this a bug or an undocumented limitation of the scroll API ?

Thanks for your responses. 🙂

Olivier  
BlaBlaCar

--  
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/87932d6d-5cf8-4f13-9b62-09b1732fb1ab%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/87932d6d-5cf8-4f13-9b62-09b1732fb1ab%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![Clinton\_Gormley](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@Clinton\_Gormley](https://discuss.elastic.co/u/Clinton_Gormley)
#### Post date: [December 5, 2013, 1:38pm UTC](https://discuss.elastic.co/t/scroll-and-parent-child/14726/2 "2013-12-05T13:38:55Z")

</div>

Hi Oliver

I've just tried this out and it worked fine - could you show us the actual  
code that you're using?

thanks

Clint

On 5 December 2013 13:56, Olivier Dolbeau [odolbeau@gmail.com](mailto:odolbeau@gmail.com) wrote:

> Hi all !
> 
> I would like to make a scroll with a filtered query which contains filter  
> on a child mapping.
> 
> The first query works fine. The "totalHits" value is correct and I can  
> start scrolling.  
> But when I ask for the first scroll, I have no result.
> 
> Without filter on the child index, no problem, the scroll works as  
> expected.
> 
> Is this a bug or an undocumented limitation of the scroll API ?
> 
> Thanks for your responses. 🙂
> 
> Olivier  
> BlaBlaCar
> 
> --  
> 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/87932d6d-5cf8-4f13-9b62-09b1732fb1ab%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/87932d6d-5cf8-4f13-9b62-09b1732fb1ab%40googlegroups.com)  
> .  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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/CAPt3XKSTqSJtN0QF9w9JN7n2p4c9uqO%3DE4QJRfvHH72q-3yMUw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAPt3XKSTqSJtN0QF9w9JN7n2p4c9uqO%3DE4QJRfvHH72q-3yMUw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:03am UTC](https://discuss.elastic.co/t/scroll-and-parent-child/14726/3 "2017-07-06T02:03:07Z")

</div>


