# Error in indexing polygon data in Elasticsearch 8.8

**URL:** https://discuss.elastic.co/t/error-in-indexing-polygon-data-in-elasticsearch-8-8/335335
**Category:** Elasticsearch
**Created:** [June 6, 2023, 11:50am UTC](https://discuss.elastic.co/t/error-in-indexing-polygon-data-in-elasticsearch-8-8/335335 "2023-06-06T11:50:05Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![amal\_antony](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@amal\_antony](https://discuss.elastic.co/u/amal_antony)
#### Post date: [June 6, 2023, 11:50am UTC](https://discuss.elastic.co/t/error-in-indexing-polygon-data-in-elasticsearch-8-8/335335/1 "2023-06-06T11:50:05Z")

</div>

Greetings to the community!

I am experiencing issues while ingesting polygon data into Elasticsearch 8.8. An issue had been raised before in the same context, [link](https://discuss.elastic.co/t/unable-to-tessellate-shape-possible-malformed-shape-detected-error-while-indexing-in-es-7-17-7/319922). This was identified as a bug in Lucene, the fix for which was integrated to Elasticsearch version 8.7 and later. Even with ES 8.8, we are experiencing issues.  
The shape has been validated in [geojson.io](http://geojson.io).

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/1/4/1417d6be220413f09c59b90b8ccb98a7b20fa1e6.jpeg)  
Sharing the sample polygon data.  
[https://raw.githubusercontent.com/amalantonygit/polygon-data/main/polygon.geojson](https://raw.githubusercontent.com/amalantonygit/polygon-data/main/polygon.geojson)

Would appreciate any help in identifying the underlying issue.  
Thanks in advance

---

<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 6, 2023, 12:07pm UTC](https://discuss.elastic.co/t/error-in-indexing-polygon-data-in-elasticsearch-8-8/335335/2 "2023-06-06T12:07:54Z")

</div>

hello,

yes, this is an issue on lucene side. The algorithm that breaks the polygon (Tessellator) in order to index it is not able to handle those polygons. I had a quick look and I could not find anything obvious.

Would you like to open an issue in the lucene repository ([GitHub - apache/lucene: Apache Lucene open-source search software](https://github.com/apache/lucene)) so we can take a deeper look?

---

<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 7, 2023, 9:45am UTC](https://discuss.elastic.co/t/error-in-indexing-polygon-data-in-elasticsearch-8-8/335335/3 "2023-06-07T09:45:49Z")

</div>

I open [Polygons failing to tessellate · Issue #12352 · apache/lucene · GitHub](https://github.com/apache/lucene/issues/12352)

---

<div class="post-metadata">

### Author: ![amal\_antony](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@amal\_antony](https://discuss.elastic.co/u/amal_antony)
#### Post date: [June 7, 2023, 2:37pm UTC](https://discuss.elastic.co/t/error-in-indexing-polygon-data-in-elasticsearch-8-8/335335/4 "2023-06-07T14:37:04Z")

</div>

Thanks for creating that @Ignacio_Vera.

Let me know if you need any additional info for debugging.

---

<div class="post-metadata">

### Author: ![amal\_antony](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@amal\_antony](https://discuss.elastic.co/u/amal_antony)
#### Post date: [June 14, 2023, 4:46am UTC](https://discuss.elastic.co/t/error-in-indexing-polygon-data-in-elasticsearch-8-8/335335/5 "2023-06-14T04:46:27Z")

</div>

Hi @Ignacio_Vera.  
Can you provide a tentative timeline as to when the fixes will be integrated to Elasticsearch?

---

<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 20, 2023, 10:22am UTC](https://discuss.elastic.co/t/error-in-indexing-polygon-data-in-elasticsearch-8-8/335335/6 "2023-06-20T10:22:21Z")

</div>

Hello @amal_antony ,

The fix will be released in the 8.x line whenever a new version of Lucene is released and the release is adopted by Elasticsearch.

There was actually a branch cut on Lucene last week and a new release is expected soon so I hope the fix will be in the next Elasticsearch minor version (8.9.0).

The fix was backported to the 7.x line too so I hope it will be included in the next bug fix release too.

---

<div class="post-metadata">

### Author: ![amal\_antony](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@amal\_antony](https://discuss.elastic.co/u/amal_antony)
#### Post date: [June 21, 2023, 6:00am UTC](https://discuss.elastic.co/t/error-in-indexing-polygon-data-in-elasticsearch-8-8/335335/7 "2023-06-21T06:00:53Z")

</div>

Thanks for the update, @Ignacio_Vera !

---

<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 19, 2023, 6:01am UTC](https://discuss.elastic.co/t/error-in-indexing-polygon-data-in-elasticsearch-8-8/335335/8 "2023-07-19T06:01:08Z")

</div>

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