I want to change default mapping provided by elasticsearch for a index.
When I am creating any index, I am providing mapping for known fields which I know will come inside that index. But there are some extra fields which can be indexed at run time, I want to set mapping for them whenever they are added.
Elasticsearch version -6.3.2
Take a look at dynamic templates. Dynamic templates allow you to change the default mapping of unmapped fields, based on the name or JSON type of that field.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.