Geo_shape query no longer working in 6.6.0

I tried upgrading my development system from 6.4 to 6.6.0. After this, point (in a document) in polygon (geo_shape in the query) queries ("give me everyone located in this area") no longer work - no error or anything, just they produce no hits.

When I dumped and reloaded the data (so re-indexed), then it seems to be OK. But I would prefer not to have to take the live system down to re-index.

Though I see a note about geo_shape in the 6.6 breaking changes, I don't see anything that I read as affecting this.

Specifically my query is scrolled, and the query is as below (for example). "address" is nested, and "address.location" is mapped as just {"type": "geo_shape"} but it always contains just a single point.

{
  "size": 250,
  "version": true,
  "sort": [
    "membershipnumber"
  ],
  "_source": [
    "membershipnumber"
  ],
  "query": {
    "bool": {
      "should": [
        {
          "term": {
            "type": "current"
          }
        },
        {
          "nested": {
            "query": {
              "geo_shape": {
                "address.location": {
                  "shape": {
                    "coordinates": [
                      [
                        [
                          -2.559814453125,
                          51.461708066319
                        ],
                        [
                          -2.5048828125,
                          51.463419257923
                        ],
                        [
                          -2.5076293945312,
                          51.43860069927
                        ],
                        [
                          -2.5584411621094,
                          51.43774464626
                        ],
                        [
                          -2.559814453125,
                          51.461708066319
                        ]
                      ]
                    ],
                    "type": "polygon"
                  },
                  "relation": "within"
                }
              }
            },
            "path": "address"
          }
        }
      ],
      "minimum_should_match": 2
    }
  }
}

This is a known issue in 6.6.0:

We hope to have it fixed in the next bug fix release.

OK, thanks. I hold off upgrading until it is fixed then. I've no urgent need to upgrade, just keeping up to date.

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