# Parent - child in separate indices

**URL:** https://discuss.elastic.co/t/parent-child-in-separate-indices/25987
**Category:** Elasticsearch
**Created:** [July 21, 2015, 1:33pm UTC](https://discuss.elastic.co/t/parent-child-in-separate-indices/25987 "2015-07-21T13:33:48Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Max\_Just](https://avatars.discourse-cdn.com/v4/letter/m/e79b87/32.png) [@Max\_Just](https://discuss.elastic.co/u/Max_Just)
#### Post date: [July 21, 2015, 1:33pm UTC](https://discuss.elastic.co/t/parent-child-in-separate-indices/25987/1 "2015-07-21T13:33:48Z")

</div>

Hi,  
is it possible to use parent-child relation if parents store in index1/type1 and child store index index2/type2?

---

<div class="post-metadata">

### Author: ![colings86](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/colings86/32/44960_2.png) [@colings86](https://discuss.elastic.co/u/colings86)
#### Post date: [July 21, 2015, 2:47pm UTC](https://discuss.elastic.co/t/parent-child-in-separate-indices/25987/2 "2015-07-21T14:47:42Z")

</div>

Parent-child relationships are limited to documents within the same index. This is because in order to work efficiently the parent and child need to both be stored on the same shard.

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [July 23, 2015, 6:56am UTC](https://discuss.elastic.co/t/parent-child-in-separate-indices/25987/3 "2015-07-23T06:56:56Z")

</div>

See also [Can we give parent/child relation ship between different indexes](https://discuss.elastic.co/t/can-we-give-parent-child-relation-ship-between-different-indexes/25872/11)

---

<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: [July 5, 2017, 11:59pm UTC](https://discuss.elastic.co/t/parent-child-in-separate-indices/25987/4 "2017-07-05T23:59:43Z")

</div>


