# Update won't work?

**URL:** <https://discuss.elastic.co/t/update-wont-work/6848>\
**Category:** Elasticsearch\
**Created:** [March 1, 2012, 7:22am UTC](https://discuss.elastic.co/t/update-wont-work/6848 "2012-03-01T07:22:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kaliseo](https://avatars.discourse-cdn.com/v4/letter/k/ce73a5/32.png) [@kaliseo](https://discuss.elastic.co/u/kaliseo)\
**Post date:** [March 1, 2012, 7:22am UTC](https://discuss.elastic.co/t/update-wont-work/6848/1 "2012-03-01T07:22:09Z")

</div>

Hi There,

I just copy / past the sample in documentation about update, and.. it don't  
work :  
Doc : [http://www.elasticsearch.org/guide/reference/api/update.html](http://www.elasticsearch.org/guide/reference/api/update.html)

Index :  
curl -XPUT server:9200/test/type1/1 -d '{"counter" : 1,"tags" : ["red"]}'  
{"ok":true,"\_index":"test","\_type":"type1","\_id":"1","\_version":1}

Update :  
curl -XPOST 'server:9200/test/type1/1/\_update' -d '{"script" :  
"ctx.\_source.counter += count","params" : {"count" : 4}}'  
No handler found for uri [/test/type1/1/\_update] and method [POST]

Can someone explain me what's wrong ?

Thanks a lot !

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 1, 2012, 7:34am UTC](https://discuss.elastic.co/t/update-wont-work/6848/2 "2012-03-01T07:34:30Z")

</div>

Are you using 0.19.x version ?

David 😉  
@dadoonet

Le 1 mars 2012 à 08:22, "kali.seo" [kali.seo@gmail.com](mailto:kali.seo@gmail.com) a écrit :

> Hi There,
> 
> I just copy / past the sample in documentation about update, and.. it don't work :  
> Doc : [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/update.html)
> 
> Index :  
> curl -XPUT server:9200/test/type1/1 -d '{"counter" : 1,"tags" : ["red"]}'  
> {"ok":true,"\_index":"test","\_type":"type1","\_id":"1","\_version":1}
> 
> Update :  
> curl -XPOST 'server:9200/test/type1/1/\_update' -d '{"script" : "ctx.\_source.counter += count","params" : {"count" : 4}}'  
> No handler found for uri [/test/type1/1/\_update] and method [POST]
> 
> Can someone explain me what's wrong ?
> 
> Thanks a lot !

---

<div class="post-metadata">

**Author:** ![kaliseo](https://avatars.discourse-cdn.com/v4/letter/k/ce73a5/32.png) [@kaliseo](https://discuss.elastic.co/u/kaliseo)\
**Post date:** [March 1, 2012, 8:12am UTC](https://discuss.elastic.co/t/update-wont-work/6848/3 "2012-03-01T08:12:31Z")

</div>

Nop, 0.18.7

2012/3/1 David Pilato [david@pilato.fr](mailto:david@pilato.fr)

> Are you using 0.19.x version ?
> 
> David 😉  
> @dadoonet
> 
> Le 1 mars 2012 à 08:22, "kali.seo" [kali.seo@gmail.com](mailto:kali.seo@gmail.com) a écrit :
> 
> Hi There,
> 
> I just copy / past the sample in documentation about update, and.. it  
> don't work :  
> Doc : [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/update.html)
> 
> Index :  
> curl -XPUT server:9200/test/type1/1 -d '{"counter" : 1,"tags" : ["red"]}'  
> {"ok":true,"\_index":"test","\_type":"type1","\_id":"1","\_version":1}
> 
> Update :  
> curl -XPOST 'server:9200/test/type1/1/\_update' -d '{"script" :  
> "ctx.\_source.counter += count","params" : {"count" : 4}}'  
> No handler found for uri [/test/type1/1/\_update] and method [POST]
> 
> Can someone explain me what's wrong ?
> 
> Thanks a lot !

--  
Thierry @ Gmail

---

<div class="post-metadata">

**Author:** ![kaliseo](https://avatars.discourse-cdn.com/v4/letter/k/ce73a5/32.png) [@kaliseo](https://discuss.elastic.co/u/kaliseo)\
**Post date:** [March 1, 2012, 8:46am UTC](https://discuss.elastic.co/t/update-wont-work/6848/4 "2012-03-01T08:46:48Z")

</div>

Ok, i installed 19 RC3, it works now...

Thanks

2012/3/1 Thierry LEFORESTIER [kali.seo@gmail.com](mailto:kali.seo@gmail.com)

> Nop, 0.18.7
> 
> 2012/3/1 David Pilato [david@pilato.fr](mailto:david@pilato.fr)
> 
> > Are you using 0.19.x version ?
> > 
> > David 😉  
> > @dadoonet
> > 
> > Le 1 mars 2012 à 08:22, "kali.seo" [kali.seo@gmail.com](mailto:kali.seo@gmail.com) a écrit :
> > 
> > Hi There,
> > 
> > I just copy / past the sample in documentation about update, and.. it  
> > don't work :  
> > Doc : [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/update.html)
> > 
> > Index :  
> > curl -XPUT server:9200/test/type1/1 -d '{"counter" : 1,"tags" : ["red"]}'  
> > {"ok":true,"\_index":"test","\_type":"type1","\_id":"1","\_version":1}
> > 
> > Update :  
> > curl -XPOST 'server:9200/test/type1/1/\_update' -d '{"script" :  
> > "ctx.\_source.counter += count","params" : {"count" : 4}}'  
> > No handler found for uri [/test/type1/1/\_update] and method [POST]
> > 
> > Can someone explain me what's wrong ?
> > 
> > Thanks a lot !
> 
> --  
> Thierry @ Gmail

--  
Thierry @ Gmail

---

<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:37am UTC](https://discuss.elastic.co/t/update-wont-work/6848/5 "2017-07-06T03:37:46Z")

</div>


