Indexing and querying polygons
Using United States of America state data, this tutorial demonstrates how to index and query geospatial shapes, such as Polygons and MultiPolygons.
solr.SpatialRecursivePrefixTreeFieldType
. Polygonal searches use the following geospatial predicates:
- Intersects: Matches if the indexed value overlaps the search criteria.
- IsWithin: Matches if the indexed value completely encapsulates the search criteria.
- IsDisjointTo: Matches if the index value does not overlap or touch the search criteria.