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
}
}
}