# Parent Child documents

**URL:** <https://discuss.elastic.co/t/parent-child-documents/14827>\
**Category:** Elasticsearch\
**Created:** [December 12, 2013, 12:02am UTC](https://discuss.elastic.co/t/parent-child-documents/14827 "2013-12-12T00:02:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Charles\_Gardiner](https://avatars.discourse-cdn.com/v4/letter/c/e68b1a/32.png) [@Charles\_Gardiner](https://discuss.elastic.co/u/Charles_Gardiner)\
**Post date:** [December 12, 2013, 12:02am UTC](https://discuss.elastic.co/t/parent-child-documents/14827/1 "2013-12-12T00:02:52Z")

</div>

Howdy,

When setting up parent child documents, must those documents exist in the  
same index? or can I have a parent document in a separate index from a  
child?

Thanks  
Charles

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/b52dc58e-d6c9-44a7-baf8-8fa40bda0fc9%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b52dc58e-d6c9-44a7-baf8-8fa40bda0fc9%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [December 12, 2013, 6:51am UTC](https://discuss.elastic.co/t/parent-child-documents/14827/2 "2013-12-12T06:51:13Z")

</div>

They have to be in the same shard !  
So in the same index.

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 12 déc. 2013 à 01:02, Charles Gardiner [charles@sourceclear.com](mailto:charles@sourceclear.com) a écrit :

> Howdy,
> 
> When setting up parent child documents, must those documents exist in the same index? or can I have a parent document in a separate index from a child?
> 
> ## Thanks Charles
> 
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/b52dc58e-d6c9-44a7-baf8-8fa40bda0fc9%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b52dc58e-d6c9-44a7-baf8-8fa40bda0fc9%40googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/B9F504E9-064D-4FB8-95F8-E0F8E9B04D64%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/B9F504E9-064D-4FB8-95F8-E0F8E9B04D64%40pilato.fr).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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 6, 2017, 2:01am UTC](https://discuss.elastic.co/t/parent-child-documents/14827/3 "2017-07-06T02:01:45Z")

</div>


