# Elasticsearch 6.6.0 geo\_shape query on old documents not working after upgrade

**URL:** <https://discuss.elastic.co/t/elasticsearch-6-6-0-geo-shape-query-on-old-documents-not-working-after-upgrade/166962>\
**Category:** Elasticsearch\
**Created:** [February 4, 2019, 1:20pm UTC](https://discuss.elastic.co/t/elasticsearch-6-6-0-geo-shape-query-on-old-documents-not-working-after-upgrade/166962 "2019-02-04T13:20:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![oystein.elvik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/oystein.elvik/32/27782_2.png) [@oystein.elvik](https://discuss.elastic.co/u/oystein.elvik)\
**Post date:** [February 4, 2019, 1:20pm UTC](https://discuss.elastic.co/t/elasticsearch-6-6-0-geo-shape-query-on-old-documents-not-working-after-upgrade/166962/1 "2019-02-04T13:20:12Z")

</div>

Hi, I just tried to upgrade from elasticsearch 6.2.3 to elasticsearch 6.6.0.

After upgrade i find that i get no hits of older documents when using geo\_shape query.

I get a match for documents created after upgrade.

The index is still version 6.2.3. And the shape is mapped with:  
"shape" : {  
"type" : "geo\_shape",  
"tree\_levels" : 9,  
"points\_only" : true  
}

I've tried many different geo\_shape queries but no one seems to get a hit. And there's no error in my elasticsearch log.

I realize that one solution would be to reindex all indices but can't afford the downtime it would require in production.

Looks like a bug to me.

BR  
Øystein

---

<div class="post-metadata">

**Author:** ![val](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/val/32/138203_2.png) [@val](https://discuss.elastic.co/u/val)\
**Post date:** [February 6, 2019, 7:17am UTC](https://discuss.elastic.co/t/elasticsearch-6-6-0-geo-shape-query-on-old-documents-not-working-after-upgrade/166962/2 "2019-02-06T07:17:55Z")

</div>

Exact same issue for me after upgrading from 6.5.4 to 6.6.0 on ES Cloud.

Moreover, it is not clear from the [6.6 breaking changes](https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking-changes-6.6.html#_changed_default_literal_geo_shape_literal_indexing_strategy) what needs to be done to make pre-6.6. shapes compatible with 6.6.

Please advise.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 6, 2019, 7:24am UTC](https://discuss.elastic.co/t/elasticsearch-6-6-0-geo-shape-query-on-old-documents-not-working-after-upgrade/166962/3 "2019-02-06T07:24:10Z")

</div>

I've asked someone to look at this, but it might also be worth raising an issue on GtitHub as well 🙂

---

<div class="post-metadata">

**Author:** ![val](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/val/32/138203_2.png) [@val](https://discuss.elastic.co/u/val)\
**Post date:** [February 6, 2019, 7:36am UTC](https://discuss.elastic.co/t/elasticsearch-6-6-0-geo-shape-query-on-old-documents-not-working-after-upgrade/166962/4 "2019-02-06T07:36:23Z")

</div>

Thank you Mark, much appreciated.

The issue is here: [https://github.com/elastic/elasticsearch/issues/38494](https://github.com/elastic/elasticsearch/issues/38494)

---

<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:** [March 6, 2019, 7:36am UTC](https://discuss.elastic.co/t/elasticsearch-6-6-0-geo-shape-query-on-old-documents-not-working-after-upgrade/166962/5 "2019-03-06T07:36:25Z")

</div>

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