Dear Wiki user, You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.
The "SpatialSearch" page has been changed by Bill Bell. http://wiki.apache.org/solr/SpatialSearch?action=diff&rev1=43&rev2=44 -------------------------------------------------- The geodist function can have the points specified as function arguments, or can default to looking at the '''pt''' and '''sfield''' global request parameters. + Or you could combine geodist() with geofilt (or bbox) to limit the results and sort them by distance: + + . [[http://localhost:8983/solr/select?wt=json&indent=true&fl=name,store&q=*:*&fq={!geofilt}&sfield=store&pt=45.15,-93.85&sort=geodist()%20asc|...&q=*:*&fq={!geofilt}&sfield=store&pt=45.15,-93.85&sort=geodist() asc]] + == Returning the distance == Returning distances (and any arbitrary function query value) is currently under development. As a temporary workaround, it's possible to obtain distances by using geodist or geofilt as the only scoring part of the main query.