# Built In Mappings

**URL:** <https://discuss.elastic.co/t/built-in-mappings/3201>\
**Category:** Elasticsearch\
**Created:** [August 9, 2010, 2:23pm UTC](https://discuss.elastic.co/t/built-in-mappings/3201 "2010-08-09T14:23:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrew\_Degtiariov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrew_degtiariov/32/3223_2.png) [@Andrew\_Degtiariov](https://discuss.elastic.co/u/Andrew_Degtiariov)\
**Post date:** [August 9, 2010, 2:23pm UTC](https://discuss.elastic.co/t/built-in-mappings/3201/1 "2010-08-09T14:23:14Z")

</div>

Hello!  
I'm trying to add built in mapping for index "contacts" for document  
type "contact".  
But when I created directory config/mappings/contacts/ (even empty or  
with valid file contact.json inside) all my attempts to create index  
"contacts" fail:

ad@devbox:~$ curl -XPUT '[http://localhost:9200/contacts/](http://localhost:9200/contacts/)'  
{"error":"nested: "}ad@devbox:~$

When I drop config/mappings/ directory the index created successfully:  
ad@devbox:~$ curl -XPUT '[http://localhost:9200/contacts/](http://localhost:9200/contacts/)'  
{"ok":true,"acknowledged":true}ad@devbox:~$

Where I'm wrong?

--  
Andrew Degtiariov  
DA-RIPE

---

<div class="post-metadata">

**Author:** ![talsalmona](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/talsalmona/32/3316_2.png) [@talsalmona](https://discuss.elastic.co/u/talsalmona)\
**Post date:** [August 9, 2010, 3:56pm UTC](https://discuss.elastic.co/t/built-in-mappings/3201/2 "2010-08-09T15:56:19Z")

</div>

Seems similar to this thread:  
[http://groups.google.com/a/elasticsearch.com/group/users/browse\_thread/thread/9b19daafa8eca840/b488f0ba74ee5ab3?lnk=gst&q=tal#b488f0ba74ee5ab3](http://groups.google.com/a/elasticsearch.com/group/users/browse_thread/thread/9b19daafa8eca840/b488f0ba74ee5ab3?lnk=gst&q=tal#b488f0ba74ee5ab3)  
Fixed in master (0.9.1)

Tal

On Aug 9, 5:23 pm, Andrew Degtiariov [andrew.degtiar...@gmail.com](mailto:andrew.degtiar...@gmail.com)  
wrote:

> Hello!  
> I'm trying to add built in mapping for index "contacts" for document  
> type "contact".  
> But when I created directory config/mappings/contacts/ (even empty or  
> with valid file contact.json inside) all my attempts to create index  
> "contacts" fail:
> 
> ad@devbox:~$ curl -XPUT '[http://localhost:9200/contacts/](http://localhost:9200/contacts/)'  
> {"error":"nested: "}ad@devbox:~$
> 
> When I drop config/mappings/ directory the index created successfully:  
> ad@devbox:~$ curl -XPUT '[http://localhost:9200/contacts/](http://localhost:9200/contacts/)'  
> {"ok":true,"acknowledged":true}ad@devbox:~$
> 
> Where I'm wrong?
> 
> --  
> Andrew Degtiariov  
> DA-RIPE

---

<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, 4:21am UTC](https://discuss.elastic.co/t/built-in-mappings/3201/3 "2017-07-06T04:21:01Z")

</div>


