# Parent Child Example Woes

**URL:** <https://discuss.elastic.co/t/parent-child-example-woes/68386>\
**Category:** Elasticsearch\
**Created:** [December 8, 2016, 1:37am UTC](https://discuss.elastic.co/t/parent-child-example-woes/68386 "2016-12-08T01:37:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tiggyboo](https://avatars.discourse-cdn.com/v4/letter/t/b782af/32.png) [@tiggyboo](https://discuss.elastic.co/u/tiggyboo)\
**Post date:** [December 8, 2016, 1:37am UTC](https://discuss.elastic.co/t/parent-child-example-woes/68386/1 "2016-12-08T01:37:22Z")

</div>

I'm an absolute ES beginner. I've been trying to create a parent child relationship with some of my data using this example:

[https://www.elastic.co/guide/en/elasticsearch/guide/current/indexing-parent-child.html](https://www.elastic.co/guide/en/elasticsearch/guide/current/indexing-parent-child.html)

I couldn't make it work in Sense and finally tried the example itself, and it also failed. In all cases, the error was:

"type": "illegal\_argument\_exception",  
"reason": "Can't specify parent if no parent field has been configured"

I'm using ES version 2.4.2 . Is there perhaps a more up to date version of the example anyone is aware of?

Thanks,  
Al

---

<div class="post-metadata">

**Author:** ![tiggyboo](https://avatars.discourse-cdn.com/v4/letter/t/b782af/32.png) [@tiggyboo](https://discuss.elastic.co/u/tiggyboo)\
**Post date:** [December 8, 2016, 11:18pm UTC](https://discuss.elastic.co/t/parent-child-example-woes/68386/2 "2016-12-08T23:18:25Z")

</div>

I found that the example code I was trying to run was for some version later than 2.4.2. It ran fine with 5+.

---

<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:** [January 5, 2017, 11:18pm UTC](https://discuss.elastic.co/t/parent-child-example-woes/68386/3 "2017-01-05T23:18:24Z")

</div>

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