O'Reilly logo

Apache Solr 3 Enterprise Search Server by Eric Pugh, David Smiley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Geospatial search

Geospatial search broadly refers to a search that in some way uses geospatially-indexed locations. A common specific need is filtering search results by distance from a center point and also to sort the results by that distance. Other uses are influencing relevancy order and faceting by distance ranges. Spatial search is similar but based on a 2-dimensional Cartesian plane instead of geospatial's sphere / planetary orientation. For documentation on the less useful spatial search, go to Solr's wiki.

Note

The geospatial support about to be described is entirely new to Solr 3.1. This is just the beginning; expect much more in future releases. It may very well work quite differently in the future.

Indexing locations

You need raw location ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required