# Mapping prevents documents from being accepted

**URL:** <https://discuss.elastic.co/t/mapping-prevents-documents-from-being-accepted/101016>\
**Category:** Elasticsearch\
**Created:** [September 19, 2017, 11:53am UTC](https://discuss.elastic.co/t/mapping-prevents-documents-from-being-accepted/101016 "2017-09-19T11:53:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hilt86](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hilt86/32/20308_2.png) [@hilt86](https://discuss.elastic.co/u/hilt86)\
**Post date:** [September 19, 2017, 11:53am UTC](https://discuss.elastic.co/t/mapping-prevents-documents-from-being-accepted/101016/1 "2017-09-19T11:53:54Z")

</div>

I have documents that appear to fail to be indexed / stored by Elasticsearch when I modify the mapping. [The mapping as a gist](https://gist.github.com/hilt86/7c63cc99a892d52c4c0d37109ca0fb55)

I am running Elasticsearch 5.5 and if I delete the mapping then the documents are indexed (document\_type is "dstat") and a mapping is automatically created.

Since some of the values need to be numbers I copied the auto-created mapping and changed the two fields that are in fact numbers to type "integer".

Thereafter I delete the index and while the index is created no documents are indexed after deleting the index and updating the mapping.

Any idea what could be the problem?

---

<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:** [October 17, 2017, 11:54am UTC](https://discuss.elastic.co/t/mapping-prevents-documents-from-being-accepted/101016/2 "2017-10-17T11:54:02Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
