# Precision issue with Elasticsearch 6.8

**URL:** <https://discuss.elastic.co/t/precision-issue-with-elasticsearch-6-8/186407>\
**Category:** Elasticsearch\
**Created:** [June 19, 2019, 8:02am UTC](https://discuss.elastic.co/t/precision-issue-with-elasticsearch-6-8/186407 "2019-06-19T08:02:41Z")\
**Posts on this page:** 10\
**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:** [June 19, 2019, 8:02am UTC](https://discuss.elastic.co/t/precision-issue-with-elasticsearch-6-8/186407/1 "2019-06-19T08:02:41Z")

</div>

Per the solution provided in [this comment](https://discuss.elastic.co/t/find-geo-hash/181978/2), we have upgraded our elasticsearch version to 6.8. However, the precision issue still exists. We also tried deleting the index and ingested the data in a new index . It didn't work.

Should we set any parameters to get a precision of 1cm as mentioned in the aforementioned comment?

---

<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:** [June 19, 2019, 8:13am UTC](https://discuss.elastic.co/t/precision-issue-with-elasticsearch-6-8/186407/2 "2019-06-19T08:13:17Z")

</div>

Could you share the mapping you are using?

---

<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:** [June 19, 2019, 8:30am UTC](https://discuss.elastic.co/t/precision-issue-with-elasticsearch-6-8/186407/3 "2019-06-19T08:30:28Z")

</div>

```
{
  "bigpolygons": {
    "mappings": {
      "bigpolygon": {
        "properties": {
          "geometry": {
            "type": "geo_shape"
          },
          "id": {
            "type": "keyword"
          },
          "type": {
            "type": "text",
            "fields": {
              "keyword": {
                "type": "keyword",
                "ignore_above": 256
              }
            }
          }
        }
      }
    }
  }
}
```

---

<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:** [June 19, 2019, 8:35am UTC](https://discuss.elastic.co/t/precision-issue-with-elasticsearch-6-8/186407/4 "2019-06-19T08:35:19Z")

</div>

That should do it, so I am not sure what is going on.

You need to reindex the data so it is get indexed in the new format. You should notice that indexing geoshapes is much faster than before and your index size should be reduced as well.

Do you have an example of a polygon and a query that is given a false positive?

---

<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:** [June 19, 2019, 11:22am UTC](https://discuss.elastic.co/t/precision-issue-with-elasticsearch-6-8/186407/5 "2019-06-19T11:22:59Z")

</div>

I've deleted the index and re-ingested the data again. I can confirm that the precision issue is not present anymore. Not sure why it didn't work when I re-ingested data for the first time.

However, I am getting "CIRCLE geometry is not supported" error when I am trying to run geoshape query against circles. I am not running into this issue if I perform geo query against polygons.

Doesn't elasticsearch support circles in geo queries anymore?

We can't upgrade to 6.8 if we don't have support for circles. So, we are left to choose between solving precision issue vs continuing support for circles

---

<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:** [June 21, 2019, 7:25am UTC](https://discuss.elastic.co/t/precision-issue-with-elasticsearch-6-8/186407/6 "2019-06-21T07:25:13Z")

</div>

Please help

---

<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:** [June 21, 2019, 11:01am UTC](https://discuss.elastic.co/t/precision-issue-with-elasticsearch-6-8/186407/7 "2019-06-21T11:01:03Z")

</div>

Hi,

I am afraid that currently if you need to execute queries that require a circle then you need to either use prefix trees, and therefore you have the issue with precision or transform the circle into a polygon and execute the query as a polygon query.

---

<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:** [June 24, 2019, 2:22pm UTC](https://discuss.elastic.co/t/precision-issue-with-elasticsearch-6-8/186407/8 "2019-06-24T14:22:15Z")

</div>

Thanks for the reply. May I know when does the ES starts support of circles in geo queries in 6.8?

---

<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:** [June 24, 2019, 2:41pm UTC](https://discuss.elastic.co/t/precision-issue-with-elasticsearch-6-8/186407/9 "2019-06-24T14:41:13Z")

</div>

We do not disclose information about releases but what I can say is that we do not normally back port new features to released version of Elasticsearch. I would presume that circle support will start in one of the 7.x releases.

---

<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:** [July 22, 2019, 2:41pm UTC](https://discuss.elastic.co/t/precision-issue-with-elasticsearch-6-8/186407/10 "2019-07-22T14:41:13Z")

</div>

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