Hi Binh Ly,

thanks for answer, That helped me a lot. But how can i use the same queries 
with the PHP API? I need to add the parent query, but i dont find anything 
about this in the docu.

Thanks for helping and sharing your time.

Regards Stefan

Am Freitag, 4. April 2014 22:27:51 UTC+2 schrieb Binh Ly:
>
> So assuming you want parent/child (assuming you already set up the mapping 
> correctly), to add a child to a parent:
>
> curl -XPOST localhost:9200/test/child/child1?parent=parent1 -d'
> {
>   "state" : "Ohio"
> }'
>
> To delete the above child:
>
> curl -XDELETE localhost:9200/test/child/child1
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/30641aa3-02bf-4d82-9d50-331171c3d3d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to