Parent-child-grandchild relationship in Elasticsearch6

Is there any way that we can implement the below mappings/scenario in elasticsearch 6?
A {id}
B (Child of A){id, parentid}
C (Child of B){id, parentid}
D(Child of A){id, parentid}

Since types are deprecated from version 6. Do we need to create all the above four as indices?
How can we query A to get all documents (including its children & grandchildren) with id=xxx

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