# Find geo hash

**URL:** <https://discuss.elastic.co/t/find-geo-hash/181978>\
**Category:** Elasticsearch\
**Created:** [May 21, 2019, 10:25am UTC](https://discuss.elastic.co/t/find-geo-hash/181978 "2019-05-21T10:25:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![avinash\_07](https://avatars.discourse-cdn.com/v4/letter/a/ebca7d/32.png) [@avinash\_07](https://discuss.elastic.co/u/avinash_07)\
**Post date:** [May 21, 2019, 10:25am UTC](https://discuss.elastic.co/t/find-geo-hash/181978/1 "2019-05-21T10:25:40Z")

</div>

How do I find the length of geo hash elasticsearch is using to store geoshapes in my ES index?

Elasticsearch version - 6.1.2

I have been seeing some really bad false positives detected by elasticsearch intersects geo query when polygons(~36MB) are really big.

---

<div class="post-metadata">

**Author:** ![Ignacio\_Vera](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ignacio_vera/32/36674_2.png) [@Ignacio\_Vera](https://discuss.elastic.co/u/Ignacio_Vera)\
**Post date:** [May 21, 2019, 11:36am UTC](https://discuss.elastic.co/t/find-geo-hash/181978/2 "2019-05-21T11:36:10Z")

</div>

There is no easy way to get that information as it is encoded in the index.

I guess you are using the default parameters for geo\_shape field which means that you are using the default value for `distance_error_pct` which is set to 0.025. What this parameter does effectively is adjust the value of the precision for the shape in respect to the length of the geoshape's bounding box diagonal. So this is expected and for big shapes (covering a big area) the precision can be in the order of several kilometres.

You can try to set the value of the parameter to 0 but if shapes are big, it will take quite a long time to index, quite a lot of space and in the worst case you might run out of heap. This is the reason from version 6.6 a new indexing strategy has been introduced which provides a precision of around 1cm regardless of the size of your shape.

If possible, I would recommend trying this out, unfortunately you will need to reindex your documents.

---

<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:** [June 18, 2019, 11:36am UTC](https://discuss.elastic.co/t/find-geo-hash/181978/3 "2019-06-18T11:36:23Z")

</div>

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