Parent Child Mapping in Elastic search

Can I create a n-ary tree using elastic search. If yes, how to query to get the subtree.