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,
innerRadiusMeters);
latlonQuery = new BooleanQuery.Builder()
.add(latlonQuery, BooleanClause.Occur.MUST)
.add(innerRadiusQuery, BooleanClause.Occur.MUST_NOT)
.build();
Thanks again.
--
Sent from: http://lucene.472066.n3.nabble.com/Lucene-Java-Users-f532864.html
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]