# Not able to use scripting\_field to show distance: ES\_6.1

**URL:** <https://discuss.elastic.co/t/not-able-to-use-scripting-field-to-show-distance-es-6-1/116033>\
**Category:** Elasticsearch\
**Created:** [January 18, 2018, 11:46am UTC](https://discuss.elastic.co/t/not-able-to-use-scripting-field-to-show-distance-es-6-1/116033 "2018-01-18T11:46:05Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [January 18, 2018, 1:54pm UTC](https://discuss.elastic.co/t/not-able-to-use-scripting-field-to-show-distance-es-6-1/116033/2 "2018-01-18T13:54:43Z")

</div>

Please format your code using `</>` icon as explained in [this guide](https://discuss.elastic.co/t/about-the-elasticsearch-category/21). It will make your post more readable.

Or use markdown style like:

````
```
CODE
```
````

---

_[View the full topic](https://discuss.elastic.co/t/not-able-to-use-scripting-field-to-show-distance-es-6-1/116033)._
