# Selecting \_source and \_parent?

**URL:** <https://discuss.elastic.co/t/selecting--source-and--parent/7253>\
**Category:** Elasticsearch\
**Created:** [April 6, 2012, 4:24pm UTC](https://discuss.elastic.co/t/selecting--source-and--parent/7253 "2012-04-06T16:24:23Z")\
**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:** [April 6, 2012, 4:24pm UTC](https://discuss.elastic.co/t/selecting--source-and--parent/7253/1 "2012-04-06T16:24:23Z")

</div>

I've noticed that when performing a scroll query like this:

```
{"fields":["_source","_parent"]}

```

The \_source is no longer returned. Is this related to the  
field-selection changes in ES19? If so, what's the new way to go about  
getting the full document & metadata?

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:** [April 7, 2012, 3:16pm UTC](https://discuss.elastic.co/t/selecting--source-and--parent/7253/2 "2012-04-07T15:16:55Z")

</div>

Which version are you using? A similar problem was fixed in the recently  
released 0.19.2.

On Fri, Apr 6, 2012 at 7:24 PM, Matthew A. Brown [mat.a.brown@gmail.com](mailto:mat.a.brown@gmail.com)wrote:

> I've noticed that when performing a scroll query like this:
> 
> {"fields":["\_source","\_parent"]}
> 
> The \_source is no longer returned. Is this related to the  
> field-selection changes in ES19? If so, what's the new way to go about  
> getting the full document & metadata?
> 
> 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:** [April 7, 2012, 4:59pm UTC](https://discuss.elastic.co/t/selecting--source-and--parent/7253/3 "2012-04-07T16:59:09Z")

</div>

Hey Shay,

Ah, fantastic, I saw the behavior on 0.19.1. I'll test it out in 19.2  
and let you know if it's still a problem.

Thanks!  
Mat

On Sat, Apr 7, 2012 at 11:16, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:

> Which version are you using? A similar problem was fixed in the recently  
> released 0.19.2.
> 
> On Fri, Apr 6, 2012 at 7:24 PM, Matthew A. Brown [mat.a.brown@gmail.com](mailto:mat.a.brown@gmail.com)  
> wrote:
> 
> > I've noticed that when performing a scroll query like this:
> > 
> > {"fields":["\_source","\_parent"]}
> > 
> > The \_source is no longer returned. Is this related to the  
> > field-selection changes in ES19? If so, what's the new way to go about  
> > getting the full document & metadata?
> > 
> > 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:33am UTC](https://discuss.elastic.co/t/selecting--source-and--parent/7253/4 "2017-07-06T03:33:21Z")

</div>


