Covers the new Apache Lucene 4 spatial module. Includes Solr usage info. Applicable to ElasticSearch too.
Presented the 2012 Open Source Search in Government conference by Basis Technologies.
Distance sorting & relevancy wind up being one underlying technical requirement from the implementation
Misc: is a demo web application and a Lucene spatial strategy called “JtsSpatialStrategy” that cannot be included in Lucene spatial due to licensing.
Polygons support dateline wrap.Well tested.Key differentiators: ASL licensed, Geospatial support, Circles & Polygons
In time there will be additional unique capabilities of different implementations.TermQueryPrefixTreeStrategy too.SpatialStrategies can be combined just as people index text different ways simultaneouslySee SpatialExample.java for some code samples
This is a simple strategy. I’d like to see it extended to support choosing floats or other more compact means of holding the coordinates in memory for a desired precision level.
Recommend pairing with TwoDoublesStrategy for single-value distance sort
Would like to see customizable to floats ore other compact