# Index.mapper.dynamic doesn't work

**URL:** <https://discuss.elastic.co/t/index-mapper-dynamic-doesnt-work/65653>\
**Category:** Elasticsearch\
**Created:** [November 10, 2016, 12:21pm UTC](https://discuss.elastic.co/t/index-mapper-dynamic-doesnt-work/65653 "2016-11-10T12:21:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ginger](https://avatars.discourse-cdn.com/v4/letter/g/34f0e0/32.png) [@ginger](https://discuss.elastic.co/u/ginger)\
**Post date:** [November 10, 2016, 12:21pm UTC](https://discuss.elastic.co/t/index-mapper-dynamic-doesnt-work/65653/1 "2016-11-10T12:21:10Z")

</div>

Hi.

Automatic type creation can be disabled per-index by setting the index.mapper.dynamic setting to false in the index settings:

PUT data/\_settings  
{  
"index.mapper.dynamic":false  
}

But I found it doesn't work. My scene is:

> PUT /short

> PUT /short/\_settings  
> {  
> "index.mapper.dynamic":false  
> }

> PUT /short/life/124  
> {  
> "title": "My first blog entry",  
> "text": "Just trying this out...",  
> "date": "2014-01-01",  
> "type": "john"  
> }

But when I do as following:

> PUT /short  
> {  
> "settings": {  
> "index.mapper.dynamic":false  
> }  
> }

> PUT /short/life/124  
> {  
> "title": "My first blog entry",  
> "text": "Just trying this out...",  
> "date": "2014-01-01",  
> "type": "john"  
> }

Is there something wrong?

---

<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:** [December 8, 2016, 12:21pm UTC](https://discuss.elastic.co/t/index-mapper-dynamic-doesnt-work/65653/2 "2016-12-08T12:21:43Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![PhaedrusTheGreek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/phaedrusthegreek/32/4884_2.png) [@PhaedrusTheGreek](https://discuss.elastic.co/u/PhaedrusTheGreek)\
**Post date:** [July 12, 2017, 4:06pm UTC](https://discuss.elastic.co/t/index-mapper-dynamic-doesnt-work/65653/3 "2017-07-12T16:06:21Z")

</div>

Issue raised: [https://github.com/elastic/elasticsearch/issues/25683](https://github.com/elastic/elasticsearch/issues/25683)
