Auto generated id

This is my first exploration for ES, I understand the id is auto generated
if I did not user one,however here is what I get :

curl -XPUT http://localhost:9200/indextest/dns -d ' {
"url": "www.cnn.com", "domain": "cnn.com" }'

No handler found for uri [/indextest/dns] and method [PUT]

however it works well when I use the id manually :

curl -XPUT http://localhost:9200/indextest/dns/1 -d ' {
"url": "www.cnn.com", "domain": "cnn.com" }'

{"ok":true,"_index":"indextest","_type":"dns","_id":"1","_version":1}

Am I missing something here?

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

see the reference guide:

The index operation can be executed without specifying the id. In such a
case, an id will be generated automatically. In addition, the op_type will
automatically be set to create. Here is an example (note the POST used
instead of PUT):

$ curl -XPOST 'http://localhost:9200/twitter/tweet/' -d '{
"user" : "kimchy",
"post_date" : "2009-11-15T14:12:12",
"message" : "trying out Elastic Search"
}'

On Saturday, April 6, 2013 8:20:04 PM UTC+2, os...@okamalo.com wrote:

This is my first exploration for ES, I understand the id is auto generated
if I did not user one,however here is what I get :

curl -XPUT http://localhost:9200/indextest/dns -d ' {
"url": "www.cnn.com", "domain": "cnn.com" }'

No handler found for uri [/indextest/dns] and method [PUT]

however it works well when I use the id manually :

curl -XPUT http://localhost:9200/indextest/dns/1 -d ' {
"url": "www.cnn.com", "domain": "cnn.com" }'

{"ok":true,"_index":"indextest","_type":"dns","_id":"1","_version":1}

Am I missing something here?

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

Thank you.

On Saturday, April 6, 2013 10:16:07 PM UTC+3, simonw wrote:

see the reference guide:

The index operation can be executed without specifying the id. In such a
case, an id will be generated automatically. In addition, the op_type will
automatically be set to create. Here is an example (note the POST used
instead of PUT):

$ curl -XPOST 'http://localhost:9200/twitter/tweet/' -d '{
"user" : "kimchy",
"post_date" : "2009-11-15T14:12:12",
"message" : "trying out Elastic Search"
}'

On Saturday, April 6, 2013 8:20:04 PM UTC+2, os...@okamalo.com wrote:

This is my first exploration for ES, I understand the id is auto
generated if I did not user one,however here is what I get :

curl -XPUT http://localhost:9200/indextest/dns -d ' {
"url": "www.cnn.com", "domain": "cnn.com" }'

No handler found for uri [/indextest/dns] and method [PUT]

however it works well when I use the id manually :

curl -XPUT http://localhost:9200/indextest/dns/1 -d ' {
"url": "www.cnn.com", "domain": "cnn.com" }'

{"ok":true,"_index":"indextest","_type":"dns","_id":"1","_version":1}

Am I missing something here?

--
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.
For more options, visit https://groups.google.com/groups/opt_out.