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

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.47