Automatic creation of mappings rely on dynamic mappings. There is no other way to create mappings automatically. As long as you send numbers as numbers in JSON ( "number_field": 17 and not "number_field": "17" ) dynamic mappings should not map them as strings. You can also to some extent control the rules behind dynamic mapping through index templates, e.g. if you want all text fields to be mapped as keyword instead of the standard dual text/keyword mapping.
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.