Hi,

I am following the ES Definitive guide. I am trying to create a mapping for 
an index and type as follows.

curl -XPUT '192.168.1.103:9200/nxtxnlogs/transaction/' -d '          
 "mappings" : {
  "_default_" : {
   "properties" : {
    "txn_id" : { "type" : "long" },
    "logged_at" : { "type" : "string" },
    "key_name" : { "type" : "string" },
    "des" : {"type" : "string", "index" : "not_analyzed" },
    "params" : { "type" : "string"}
   }
  }
 }
}
';

But I get this error.

No handler found for uri [/nxtxnlogs/transaction/] and method [PUT].

Also how do I create an empty index. 

I apologise if the questions are basic. But I can't find it in the 
documentation.

Regards
Abhishek

-- 
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/8e77e1e5-d8dd-40e0-a290-8137989bda44%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to