Mapping longs and doubles

Can I set mapping so es will force longs into doubles on insert? I am indexing telemetry events for a game and I have no idea what will come in any particular event, it is difficult to prevent type conflicts. It would be nice if I could force all numbers into doubles. Thank you for your help :slight_smile:

Ok I have it. To do that you need to add this to the mapping:
{ ____"dynamic_templates": [ ________{ ____________"longs": { ________________"mapping": { ____________________"type": "double" ________________}, ________________"match_mapping_type": "long" ____________} ________} ____] }

sorry for the strange lines but I do not know how to fix the formatting on that page