# How does ES stores the geopoints or location of an entry?

**URL:** <https://discuss.elastic.co/t/how-does-es-stores-the-geopoints-or-location-of-an-entry/256230>\
**Category:** Elasticsearch\
**Created:** [November 21, 2020, 3:09pm UTC](https://discuss.elastic.co/t/how-does-es-stores-the-geopoints-or-location-of-an-entry/256230 "2020-11-21T15:09:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![HseinBitar](https://avatars.discourse-cdn.com/v4/letter/h/5fc32e/32.png) [@HseinBitar](https://discuss.elastic.co/u/HseinBitar)\
**Post date:** [November 21, 2020, 3:09pm UTC](https://discuss.elastic.co/t/how-does-es-stores-the-geopoints-or-location-of-an-entry/256230/1 "2020-11-21T15:09:14Z")

</div>

I need to return nearest 10 results with score above a threshold that I specify.

I do have the location of every entry, as a geopoint with latitude and longitude.

I doubt a geospatial index would be useful for such a query, because the distance will be checked for every matching result with respect to the location specified in the query...

So, is the distance calculation slow? does ES has the option to store the location on a HilbertCurve or should I do that in my app, then store the value?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 19, 2020, 3:09pm UTC](https://discuss.elastic.co/t/how-does-es-stores-the-geopoints-or-location-of-an-entry/256230/2 "2020-12-19T15:09:16Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
