Parent, Child and Grand child, nested together

Hi,

I am using elasticsearch 2.4.0

For the use case I have, parent child and grand children works best and I was able to set them up fine.

I set,

  1. Grand childs parent as, child
  2. Childs parent as, parent
  3. Set the routing of both grand child and child as parent, so that they all reside on the same shard.

All is fine and I am able to run some basic queries.

But I am not able to retrieve parent/child/grand child in a nested format.

I want to fetch parent/child/grand child, based on parent's id.

Is that possible?

I am willing to upgrade if this is possible in a higher version.

Thanks,
Arun

As the documents are all separate documents that are linked through a field rather than nested, I do not think this is possible.

Hi Christian,

Thanks for the reply.
Feels counter intuitive, that we take the effort to mark different documents as parents and children, but you can't see them all together.
Perhaps an RDBMS hangover :smile:

Thanks,
Arun

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.