Unable to Map Float Fields to Double Using Dynamic Templates in Elasticsearch

When attempting to map float fields to double using dynamic templates in Elasticsearch, I've encountered an issue where the template does not work when match_mapping_type is set to float. While the template is successfully created for other types, such as long, it fails for float.

I am looking for a workaround or solution to apply this mapping for float types to double in dynamic templates. The reason I’m trying to do this is that, when I search for a float value of 9 digits, the results are not accurate; it seems to ignore the last two digits.