# Updating Child Document

**URL:** https://discuss.elastic.co/t/updating-child-document/5347
**Category:** Elasticsearch
**Created:** [September 11, 2011, 9:20am UTC](https://discuss.elastic.co/t/updating-child-document/5347 "2011-09-11T09:20:32Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![kikster](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kikster/32/3117_2.png) [@kikster](https://discuss.elastic.co/u/kikster)
#### Post date: [September 11, 2011, 9:20am UTC](https://discuss.elastic.co/t/updating-child-document/5347/1 "2011-09-11T09:20:32Z")

</div>

Here's a simple problem.

I created a child document with the following mapping at localhost:  
9200/twitter/thistype/\_mapping :

> <https://gist.github.com/cdolivares/1209369>

However every time I issue this command

curl -XPUT localhost:9200/twitter/thistype/1?parent=67 -d  
'{"open\_requests":200}'

I get this response

{"ok":true,"\_index":"twitter","\_type":"thistype","\_id":"1","\_version":  
7}

which is great...as you can see my version number is  
incrementing...but when I point my browser to localhost:9200/twitter/  
thistype/1 the document content does not update. Why would this be?

Also, does elasticsearch automatically set the \_parent field equal to  
the value I specify in the url "parent" parameter?

I'm on 17.6

---

<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, 3:54am UTC](https://discuss.elastic.co/t/updating-child-document/5347/2 "2017-07-06T03:54:50Z")

</div>


