lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Smiley (" <>
Subject Re: Spatial Search
Date Sun, 01 Jan 2012 18:00:43 GMT
Hi Lance.

LSP has the concept of a "SpatialStrategy" which encompasses all the
algorithms and what-not to index and query, filter, and sort shapes.  The
TwoDoublesStrategy aims to basically work like Solr's LatLonType, however it
isn't completely implemented as you found out -- it doesn't do circle query
shapes.  It shouldn't be hard to rectify that; I might work on it next.  The
SpatialStrategy that has gotten the most attention by far in LSP is
RecursivePrefixTreeStrategy, my pride and joy.  It supports a variable
number of points per document, and it supports indexing all shapes; not just
points.  I don't think you care about those two features, but it does do
sorting and circle query shapes.  The "score" that comes back from the query
is the distance from the query's center, so sort by the query to get what
you want.  This strategy doesn't store the points in memory as efficiently
as TwoDoublesStrategy does; that's something I need to improve, but it

~ David Smiley

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