# Parente and child Relations in different indexes (I am using rollover)

**URL:** https://discuss.elastic.co/t/parente-and-child-relations-in-different-indexes-i-am-using-rollover/85382
**Category:** Elasticsearch
**Created:** [May 11, 2017, 11:48am UTC](https://discuss.elastic.co/t/parente-and-child-relations-in-different-indexes-i-am-using-rollover/85382 "2017-05-11T11:48:32Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![msaciloto](https://avatars.discourse-cdn.com/v4/letter/m/fbc32d/32.png) [@msaciloto](https://discuss.elastic.co/u/msaciloto)
#### Post date: [May 11, 2017, 11:48am UTC](https://discuss.elastic.co/t/parente-and-child-relations-in-different-indexes-i-am-using-rollover/85382/1 "2017-05-11T11:48:32Z")

</div>

Hey guys,

I saw one post 4 years ago that says it is not possible. I was wondering if it has changed.

My work mate explain our problem in this link:

> <https://stackoverflow.com/questions/43909488/elasticsearch-parent-child-relationship-after-rollover>

Basically we have a rollover everyday and we can have child node in the next day without the parent, still possible to query using this relation even in different indexes ?

Thanks,

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [May 11, 2017, 1:59pm UTC](https://discuss.elastic.co/t/parente-and-child-relations-in-different-indexes-i-am-using-rollover/85382/2 "2017-05-11T13:59:21Z")

</div>

No, it is not possible. All documents that form part of a parent-child relationship need to live in the same shard.

---

<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: [June 8, 2017, 2:07pm UTC](https://discuss.elastic.co/t/parente-and-child-relations-in-different-indexes-i-am-using-rollover/85382/3 "2017-06-08T14:07:51Z")

</div>

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