Need some help for creating my model

Maybe a short answer how i can use it with the php api? :slight_smile: 1000 times thank
you, Stefan

Am Freitag, 11. April 2014 10:18:07 UTC+2 schrieb Stefan Kruse:

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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/c1761a0d-7470-477e-ae78-97773051f47b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.