I am a bit surprised as it seems most of the other fields submitted
with the record are returned by default (although I can also see the
argument that it is not always present). Are there any other fields
that can be added? Perhaps a bit more in the documentation would
help. It can be a bit confusing knowing what field to use when parent
is "parent" when url_encoded and "_parent" when posted.
On Jan 30, 12:48 pm, Shay Banon shay.ba...@elasticsearch.com wrote:
By default, only _id, _type and _source are returned. Parent is not on the same level as _id, so you need to explicitly ask for it.
On Sunday, January 30, 2011 at 7:46 PM, byuva wrote:
Yes, it seems to be working now that I specified _parent in "fields". My
initial reaction was that when no fields are specified I would expect
"_parent" to be returned just like _id and _source. I viewed fields as a
way to restrict what is returned, not add to it. It is certainly not
difficult to specify this in fields although I note that pyes doesn't
currently allow fields to be specified everywhere (eg get). I'll see if I
can create a pull request for this for aparo.
View this message in context:http://elasticsearch-users.115913.n3.nabble.com/parent-not-returned-b...
Sent from the ElasticSearch Users mailing list archive at Nabble.com.