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/9900330b-f1e3-432f-9e0b-5621d16899cc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to