# No handler found for uri when creating a mapping

**URL:** <https://discuss.elastic.co/t/no-handler-found-for-uri-when-creating-a-mapping/18147>\
**Category:** Elasticsearch\
**Created:** [June 17, 2014, 8:14am UTC](https://discuss.elastic.co/t/no-handler-found-for-uri-when-creating-a-mapping/18147 "2014-06-17T08:14:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abhishek\_Mukherjee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abhishek_mukherjee/32/1477_2.png) [@Abhishek\_Mukherjee](https://discuss.elastic.co/u/Abhishek_Mukherjee)\
**Post date:** [June 17, 2014, 8:14am UTC](https://discuss.elastic.co/t/no-handler-found-for-uri-when-creating-a-mapping/18147/1 "2014-06-17T08:14:25Z")

</div>

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 [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/8e77e1e5-d8dd-40e0-a290-8137989bda44%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/8e77e1e5-d8dd-40e0-a290-8137989bda44%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [June 17, 2014, 5:25pm UTC](https://discuss.elastic.co/t/no-handler-found-for-uri-when-creating-a-mapping/18147/2 "2014-06-17T17:25:17Z")

</div>

An index can be comprised of multiple types, so the type is not needed in  
the URL.

Try simply 192.168.1.103:9200/nxtxnlogs

Cheers,

Ivan

On Tue, Jun 17, 2014 at 1:14 AM, Abhishek Mukherjee [4271693@gmail.com](mailto:4271693@gmail.com)  
wrote:

> 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 [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/8e77e1e5-d8dd-40e0-a290-8137989bda44%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/8e77e1e5-d8dd-40e0-a290-8137989bda44%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/8e77e1e5-d8dd-40e0-a290-8137989bda44%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/8e77e1e5-d8dd-40e0-a290-8137989bda44%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQBSZdUCUtY\_%2BFnaDyUueFHfvWkA6m4eNOHwJhJ3S7eO%2BA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQBSZdUCUtY_%2BFnaDyUueFHfvWkA6m4eNOHwJhJ3S7eO%2BA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 1:21am UTC](https://discuss.elastic.co/t/no-handler-found-for-uri-when-creating-a-mapping/18147/3 "2017-07-06T01:21:44Z")

</div>


