Update won't work?

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

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 !

Are you using 0.19.x version ?

David :wink:
@dadoonet

Le 1 mars 2012 à 08:22, "kali.seo" 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

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 !

Nop, 0.18.7

2012/3/1 David Pilato david@pilato.fr

Are you using 0.19.x version ?

David :wink:
@dadoonet

Le 1 mars 2012 à 08:22, "kali.seo" 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

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

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

Thanks

2012/3/1 Thierry LEFORESTIER kali.seo@gmail.com

Nop, 0.18.7

2012/3/1 David Pilato david@pilato.fr

Are you using 0.19.x version ?

David :wink:
@dadoonet

Le 1 mars 2012 à 08:22, "kali.seo" 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

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