ShapeLuceneRDD for geospatial and full-text search queries
ShapeLuceneRDD for geospatial and full-text search queries
Type containing the geospatial information (must be implicitly convertet to Shape)
Type containing remaining information (must be implicitly converted to Document)
The Spatial4j SpatialContext
is a sort of global-ish singleton
needed by Lucene spatial.
The Spatial4j SpatialContext
is a sort of global-ish singleton
needed by Lucene spatial. It's a facade to the rest of Spatial4j, acting
as a factory for Shape
s and provides access to reading and writing
them from Strings.
Quoting from spatial4j (https://github.com/locationtech/spatial4j#getting-started)
"To get a SpatialContext (or just "context" for short), you could use a global singleton SpatialContext.GEO or JtsSpatialContext.GEO which both use geodesic surface-of-sphere calculations (when available); the JTS one principally adds Polygon support."