Printing all children recursively while modeling parent-child mapping

I am just getting started with elastic search , and one of our use cases we
are trying to model our data which is very hirerchical in nature as a
parent child.
Was wondering if i have a document, could print all its children or the
parent hirerchy recursively .
Is this even possible?

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/ec70a28e-fec6-4fcd-892b-888416fad39c%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.