# Parent/Child examples don't work

**URL:** <https://discuss.elastic.co/t/parent-child-examples-dont-work/12672>\
**Category:** Elasticsearch\
**Created:** [July 5, 2013, 8:00am UTC](https://discuss.elastic.co/t/parent-child-examples-dont-work/12672 "2013-07-05T08:00:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maarten\_Roosendaal](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@Maarten\_Roosendaal](https://discuss.elastic.co/u/Maarten_Roosendaal)\
**Post date:** [July 5, 2013, 8:00am UTC](https://discuss.elastic.co/t/parent-child-examples-dont-work/12672/1 "2013-07-05T08:00:50Z")

</div>

Hi,

I'm trying to execute the parent-child examples shown in:  
[http://www.spacevatican.org/2012/6/3/fun-with-elasticsearch-s-children-and-nested-documents/](http://www.spacevatican.org/2012/6/3/fun-with-elasticsearch-s-children-and-nested-documents/)

but the query part gives 0 results. I tried the \_refresh option but somehow  
it does not yield any results.

I'm using elasticsearch-0.90.1 and the head-plugin for executing the  
queries.

Any suggestions?

Thanks,  
Maarten

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Rafal\_Kuc\_3](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rafal_kuc_3/32/799_2.png) [@Rafal\_Kuc\_3](https://discuss.elastic.co/u/Rafal_Kuc_3)\
**Post date:** [July 5, 2013, 8:08am UTC](https://discuss.elastic.co/t/parent-child-examples-dont-work/12672/2 "2013-07-05T08:08:42Z")

</div>

Hello!

Try running the queries using the curl command or try sending the query using POST. That should help with head.

_--_

Regards,

Rafał Kuć

Sematext :: [http://sematext.com/](http://sematext.com/) _:: Solr - Lucene - ElasticSearch_

Hi,

I'm trying to execute the parent-child examples shown in:

[http://www.spacevatican.org/2012/6/3/fun-with-elasticsearch-s-children-and-nested-documents/](http://www.spacevatican.org/2012/6/3/fun-with-elasticsearch-s-children-and-nested-documents/)

but the query part gives 0 results. I tried the \_refresh option but somehow it does not yield any results.

I'm using elasticsearch-0.90.1 and the head-plugin for executing the queries.

Any suggestions?

Thanks,

Maarten

--

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).

For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Maarten\_Roosendaal](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@Maarten\_Roosendaal](https://discuss.elastic.co/u/Maarten_Roosendaal)\
**Post date:** [July 5, 2013, 8:56am UTC](https://discuss.elastic.co/t/parent-child-examples-dont-work/12672/3 "2013-07-05T08:56:24Z")

</div>

I tried it with curl from the commandline (windows) but same result (0), i  
already use the 'POST' for the head-plugin.

For the post-rating example i do get a result when i leave out the filter  
but of course that's not what i want. Has there been a change that's not  
reflected in the example?

Op vrijdag 5 juli 2013 10:08:42 UTC+2 schreef Rafał Kuć het volgende:

> Hello!
> 
> Try running the queries using the curl command or try sending the query  
> using POST. That should help with head.
> 
> \*--  
> Regards,  
> Rafał Kuć  
> Sematext :: _[http://sematext.com/](http://sematext.com/)_ :: Solr - Lucene - Elasticsearch
> 
> - 
> 
> Hi,
> 
> I'm trying to execute the parent-child examples shown in:
> 
> [Fun with elasticsearch's children and nested documents - Space Vatican](http://www.spacevatican.org/2012/6/3/fun-with-elasticsearch-s-children-and-nested-documents/)
> 
> but the query part gives 0 results. I tried the \_refresh option but  
> somehow it does not yield any results.
> 
> I'm using elasticsearch-0.90.1 and the head-plugin for executing the  
> queries.
> 
> Any suggestions?
> 
> Thanks,  
> Maarten
> 
> --  
> 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> 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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Maarten\_Roosendaal](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@Maarten\_Roosendaal](https://discuss.elastic.co/u/Maarten_Roosendaal)\
**Post date:** [July 5, 2013, 5:55pm UTC](https://discuss.elastic.co/t/parent-child-examples-dont-work/12672/4 "2013-07-05T17:55:55Z")

</div>

some additional info:  
after i restarted my laptop and tried to have another go at it, the  
author-book example did find results but in stead of returning 1 result it  
gives back 2 results. So there is still something not right.

Any suggestions?

Op vrijdag 5 juli 2013 10:56:24 UTC+2 schreef Maarten Roosendaal het  
volgende:

> I tried it with curl from the commandline (windows) but same result (0), i  
> already use the 'POST' for the head-plugin.
> 
> For the post-rating example i do get a result when i leave out the filter  
> but of course that's not what i want. Has there been a change that's not  
> reflected in the example?
> 
> Op vrijdag 5 juli 2013 10:08:42 UTC+2 schreef Rafał Kuć het volgende:
> 
> > Hello!
> > 
> > Try running the queries using the curl command or try sending the query  
> > using POST. That should help with head.
> > 
> > \*--  
> > Regards,  
> > Rafał Kuć  
> > Sematext :: _[http://sematext.com/](http://sematext.com/)_ :: Solr - Lucene - Elasticsearch
> > 
> > - 
> > 
> > Hi,
> > 
> > I'm trying to execute the parent-child examples shown in:
> > 
> > [Fun with elasticsearch's children and nested documents - Space Vatican](http://www.spacevatican.org/2012/6/3/fun-with-elasticsearch-s-children-and-nested-documents/)
> > 
> > but the query part gives 0 results. I tried the \_refresh option but  
> > somehow it does not yield any results.
> > 
> > I'm using elasticsearch-0.90.1 and the head-plugin for executing the  
> > queries.
> > 
> > Any suggestions?
> > 
> > Thanks,  
> > Maarten
> > 
> > --  
> > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.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).  
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:27am UTC](https://discuss.elastic.co/t/parent-child-examples-dont-work/12672/5 "2017-07-06T02:27:55Z")

</div>


