# How to set close auto create mapping when index data?

**URL:** <https://discuss.elastic.co/t/how-to-set-close-auto-create-mapping-when-index-data/183639>\
**Category:** Elasticsearch\
**Created:** [May 31, 2019, 1:25am UTC](https://discuss.elastic.co/t/how-to-set-close-auto-create-mapping-when-index-data/183639 "2019-05-31T01:25:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mh\_w](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mh_w/32/47204_2.png) [@mh\_w](https://discuss.elastic.co/u/mh_w)\
**Post date:** [May 31, 2019, 1:25am UTC](https://discuss.elastic.co/t/how-to-set-close-auto-create-mapping-when-index-data/183639/1 "2019-05-31T01:25:05Z")

</div>

**Elasticsearch version** ( `bin/elasticsearch --version` ): 7.1

**Plugins installed** : [x-pack]

**JVM version** ( `java -version` ): 1.8.0\_212

**OS version** ( `uname -a` if on a Unix-like system): Linux VM-0-41-ubuntu 4.4.0-130-generic [#156](https://github.com/elastic/elasticsearch/issues/156)-Ubuntu SMP Thu Jun 14 08:53:28 UTC 2018 x86\_64 x86\_64 x86\_64 GNU/Linux

**Description of the problem including expected versus actual behavior** :

**Steps to reproduce** :

1. i want update es from 5.3.2 to 7.1, i see the doc, the mapping type is remove,and i discover there is no need to create mapping,the es will auto create mapping, but it's not i want, for example,the location actully i need geo\_point type, but auto create mapping is float.  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/6/06c370133e4a5e1b04e042d6e8cf45e22bec7272.png)  
in the es 5.3.2 the mapping like  
 ![image](https://user-images.githubusercontent.com/12455286/58625590-5a9fad80-8305-11e9-8297-dabd86be666b.png)

---

<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:** [June 28, 2019, 1:25am UTC](https://discuss.elastic.co/t/how-to-set-close-auto-create-mapping-when-index-data/183639/2 "2019-06-28T01:25:17Z")

</div>

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