Selecting _source and _parent?


(Matthew A. Brown) #1

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


(Shay Banon) #2

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.comwrote:

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


(Matthew A. Brown) #3

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 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
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


(system) #4