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