# Not detecting mapping

**URL:** <https://discuss.elastic.co/t/not-detecting-mapping/12273>\
**Category:** Elasticsearch\
**Created:** [June 5, 2013, 4:50am UTC](https://discuss.elastic.co/t/not-detecting-mapping/12273 "2013-06-05T04:50:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexis\_Okuwa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexis_okuwa/32/1983_2.png) [@Alexis\_Okuwa](https://discuss.elastic.co/u/Alexis_Okuwa)\
**Post date:** [June 5, 2013, 4:50am UTC](https://discuss.elastic.co/t/not-detecting-mapping/12273/1 "2013-06-05T04:50:42Z")

</div>

I am having an issue were elasticsearch is not dectecting the correct  
mapping. I use to have a type and deleted it with curl -XDELETE  
[http://localhost:9200/index/type](http://localhost:9200/index/type) when then i started inserting data into  
the db again and it is not adding things in the root document to the new  
mapping and i have deleted the type a few times. It is only buidling the  
mapping from the sub document inside the bigger one.  
[https://gist.github.com/wojons/56293ca67a777beaaf5a](https://gist.github.com/wojons/56293ca67a777beaaf5a)

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:32am UTC](https://discuss.elastic.co/t/not-detecting-mapping/12273/2 "2017-07-06T02:32:54Z")

</div>


