|Deletions are marked like this.||Additions are marked like this.|
|Line 2:||Line 2:|
<!> [[Lucene2.9]] NOTE -- this refers to stuff that is not yet committed...
Lucene Spatial Contrib
The lucene spatial contrib explores various ways to handle spatial search in lucene.
For more info, see: http://www.nsshutdown.com/projects/lucene/whitepaper/locallucene.htm
TODO, geohash could have a nice fit with lucene.
http://mappinghacks.com/code/geohash.py.txt (public domain)
Simple numerical lat/long search using NumericRangeQuery (Lucene Core version 2.9)
Using NumericField, WGS84 latitude and longitude can be efficiently encoded and queried by NumericRangeQuery. Use this, if you have a lot of point features that should be queryable using (possibly large) bounding boxes. NumericRangeQuery is very efficient, when the user searches for bounding boxes of any size and wants to get all included point features (it is even fast, when the user selects large bounding boxes, e.g. -180,-90,180,90 runs in constant time independent of the large range bounds). See: SearchNumericalFields.