# Parent child relation for same index type

**URL:** https://discuss.elastic.co/t/parent-child-relation-for-same-index-type/106987
**Category:** Elasticsearch
**Created:** [November 9, 2017, 8:00am UTC](https://discuss.elastic.co/t/parent-child-relation-for-same-index-type/106987 "2017-11-09T08:00:00Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![krishnaraj221193](https://avatars.discourse-cdn.com/v4/letter/k/85e7bf/32.png) [@krishnaraj221193](https://discuss.elastic.co/u/krishnaraj221193)
#### Post date: [November 9, 2017, 8:00am UTC](https://discuss.elastic.co/t/parent-child-relation-for-same-index-type/106987/1 "2017-11-09T08:00:00Z")

</div>

Hello evryone,  
I have problem with same index type relation in elasticsearch which is not supported but for me i have folder index type in which we store folder inside a folder and i need to find parent folder of the folder

i can do by adding parent folder document nested field but its very big and folder is like n level folder inside folder inside folder so any solution i can get.

Thank you in advance

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [December 7, 2017, 8:00am UTC](https://discuss.elastic.co/t/parent-child-relation-for-same-index-type/106987/2 "2017-12-07T08:00:28Z")

</div>

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