How to set close auto create mapping when index data?

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-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
    in the es 5.3.2 the mapping like
    image

    2.in the past,first i create the mapping, and create the index data,so i try to custom create mapping,and it successful, but when i create the index data,it's something wrong.
    image

    3.i have try the dynamic parameter.but it not go into effect.that look like when create index data, it will be auto create a template mapping.

    what's more,i can't use mapping api to modify it.

    how can i set the mapping autocreate close. i can't find it in doc.

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