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
SpatialExample.java: 
http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/lucene/spatial/src/test/org/apache/lucene/spatial/SpatialExample.java?view=markup

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





-----
 Author: http://www.packtpub.com/apache-solr-3-enterprise-search-server/book
--
View this message in context: 
http://lucene.472066.n3.nabble.com/Equivalent-LatLongDistanceFilter-in-Lucene-4-4-API-tp4091794p4094123.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to