Re: Ring geospatial query

2017-12-22 Thread sp
Thanks Adrien. My documents do have a single geo-point, and your suggestion worked. This is my final code. Query latlonQuery = LatLonPoint.newDistanceQuery("loc", lat. lon, outerRadiusMeters); Query innerRadiusQuery = LatLonPoint.newDistanceQuery("loc", lat, lon, innerRadiusMeter

Re: Ring geospatial query

2017-12-04 Thread Adrien Grand
ius a a FILTER clause and a distance query of the inner radius as a MUST_NOT clause. Le lun. 4 déc. 2017 à 09:16, sp a écrit : > Hello, > > Does lucene java api have a way to do a ring geospatial query around a > LatLonPoint and return the results sorted by distance? By ring, I mean &

Ring geospatial query

2017-12-04 Thread sp
Hello, Does lucene java api have a way to do a ring geospatial query around a LatLonPoint and return the results sorted by distance? By ring, I mean points which lie beyond an inner radius and within an outer radius Any suggestions are greatly appreciated. Thanks -- Sent from: http://lucene