Registry / other / lucene-spatial

lucene-spatial

JSON →
library8.4.1javamavenunverified

Provides geospatial indexing and querying capabilities for Apache Lucene, enabling location-based search and filtering.

<dependency> <groupId>org.apache.lucene</groupId> <artifactId>lucene-spatial</artifactId> <version>8.4.1</version> </dependency>
INSTALL
IMPORT
SIG · LUCENE-SPATIAL
L
lucene-spatial
otherjavav8.4.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SpatialStrategy
org.apache.lucene.spatial.SpatialStrategy

Minimal example showing how to create a spatial strategy for geospatial indexing.

import org.apache.lucene.spatial.SpatialStrategy; import org.apache.lucene.spatial.prefix.RecursivePrefixTreeStrategy; import org.locationtech.spatial4j.context.SpatialContext; public class Example { public static void main(String[] args) { SpatialContext ctx = SpatialContext.GEO; SpatialStrategy strategy = new RecursivePrefixTreeStrategy(ctx, "location"); System.out.println("Spatial strategy created: " + strategy.getFieldName()); } }
Debug
Known issues
breakingLucene Spatial 8.x is not compatible with Lucene 9.x; upgrading requires migration to new spatial modules.
fix
Use lucene-spatial-extras or migrate to the new spatial API in Lucene 9+.
affects: >=8.0.0 <9.0.0
Upgrade
Version history
8.4.1latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
lucene-spatial — mvn dependency:get lucene-spatial · libregistry