© Atri Sharma 2020
A. SharmaPractical Apache Lucene 8https://doi.org/10.1007/978-1-4842-6345-7_4

4. Spatial Indexing

Atri Sharma1 
(1)
Bengaluru, Karnataka, India
 

Lucene provides a rich set of application programming interfaces (APIs) to index and query spatial fields, which allows for a variety of queries to be performed. Lucene allows either flat-plane or spherical models of spatial search.

Some key features of Lucene in that space are multidimensional points, latitude and longitudinal points, and box queries.

Lucene has a spatial module, which is the core engine responsible for spatial indexing and searching. The next section examines the API exposed by the module.

Spatial Module

The spatial module is based on Spatial4j, an Apache-licensed library ...

Get Practical Apache Lucene 8: Uncover the Search Capabilities of Your Application now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.