Spatial Search with Solr | T/DG Blog - Digital Thoughts
Solr supports location data for use in spatial/geospatial searches. Using spatial search, you can:
- Index points or other shapes
- Filter search results by a bounding box or circle or by other shapes
- Sort or boost scoring by distance between points, or relative area between rectangles
Following field types are available for spatial search:
- LatLonType – Better for distance sorting/boosting
- SpatialRecursivePrefixTreeFieldType (RPT for short) – Fast filter performance
RPT offers more features than LatLonType and fast filter performance, although LatLonType is more appropriate when efficient distance sorting/boosting is desired. They can both be used simultaneously for what each does best – LatLonType for sorting/boosting, RPT for filtering.
Read full article from Spatial Search with Solr | T/DG Blog - Digital Thoughts
No comments:
Post a Comment