Lucene spatial search
Bounding Box Spatial Strategy
Geospatial Field Implementations for Core Lucene
Geospatial Query Implementations for Core Lucene
Prefix Tree Strategy.
This package is about SpatialPrefixTree and any supporting classes.
Spatial Query options useful for client side requests
Strategies that serialize the shape (non-indexed).
Spatial4j stuff that ideally belongs in Spatial4j (isn't related to Lucene).
Various spatial utilities.
Spatial strategy that uses two fields.
The spatial module is new to Lucene 4, replacing the old "contrib" module
that came before it. The principle interface to the module is
which encapsulates an approach to indexing and searching
based on shapes. Different Strategies have different features and
performance profiles, which are documented at each Strategy implementation
For some sample code showing how to use the API, see SpatialExample.java in the tests.
The spatial module uses Spatial4j heavily. Spatial4j is an ASL licensed library with these capabilities:
Historical note: The new spatial module was once known as
Lucene Spatial Playground (LSP) as an external project. In ~March 2012, LSP
split into this new module as part of Lucene and Spatial4j externally. A
large chunk of the LSP implementation originated as SOLR-2155 which uses
trie/prefix-tree algorithms with a geohash encoding. That approach is
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.