Elastic Search using decay_function for changing score

Hi ,

I am trying to use gauss decay_function with function_score to modify the score of my documents based on their distance from a geo_location.

How can I specify the offset and scale parameters in miles? According to documentation the default unit in distance is meters (m) and I can use km for kilometers. What should I use for miles?

Regards,
Deep

mi

https://www.elastic.co/guide/en/elasticsearch/reference/current/common-options.html#distance-units is the link. Sorry it didn't jump out at you. It'd be cool to have a link there on the function score page....