##Hi all,
have a problem with elasticsearch 2.1 and geo_bounding_box.
My ES configuration (docker image) :
version: {
number: "2.1.0",
build_hash: "72cd1f1a3eee09505e036106146dc1949dc5dc87",
build_timestamp: "2015-11-18T22:40:03Z",
build_snapshot: false,
lucene_version: "5.3.1"
},
I set up the mappings :
properties: {
name: {
type: "string"
},
pin: {
type: "geo_point"
}
}
```
Pins are stored correctly :
_source: {
name: "this is a name",
[...]
pin: {
lat: 50.5757616,
lon: 3.0771416
}
}
When i execute the following query :
[{"query":{"bool":{"must":{"match_all":{}},"filter":{"geo_bounding_box":{"location":{"top_left":{"lat":50.5641649,"lon":3.095948},"bottom_right":{"lat":50.5819679,"lon":3.064912}}}}}}}]];
I have no results.
Seems like "geo_boundnig_box" is bugging... Indeed with a "geo_distance" filter I get 1 result...
Any tips ?
Thanks