lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Smiley (" <>
Subject Re: Equivalent LatLongDistanceFilter in Lucene 4.4 API
Date Tue, 08 Oct 2013 16:02:11 GMT
Hi James,

The spatial module in v4 is completely different than the one in v3.  It
would be good for you to review the new API rather then looking for a 1-1
equivalent to a class that existed in v3.  Take a look at the top level
javadocs for the spatial module, and in particular look at

A hint at a solution is that you should query by intersection with a circle
shape.  Think in terms of shapes, not distances unless you need to sort or
boost by the actual distance.

~ David

james bond wrote
> Hi All,
> Can you please let me know if there is an equivalent of
> LatLongDistanceFilter in Lucene 4.4 API.
> This API was present in Lucene 3.6 API.
> I have to mainly compute whether a point(lat,lang) is
> present at a distance d from another point(lat,lang).
> I have checked different classes from the spatial package ,
> but there is no constructor with 5 arguments like LatLongDistanceFilter
> had.
> I tried with DisjointSpatialFilter separately for both
> lattitude and longitude. but
> not sure whether it will help the purpose.
> Please provide your thoughts on it.
> Thanks
> Jamie

View this message in context:
Sent from the Lucene - Java Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message