lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fergus McDowall <fergusmcdow...@gmail.com>
Subject Faceting on distance in Solr: how do you generate links that search withing a given range of distance?
Date Tue, 17 May 2011 19:17:17 GMT
It is fairly simple to generate facets for ranges or 'buckets' of
distance in Solr:
http://wiki.apache.org/solr/SpatialSearch#How_to_facet_by_distance.
What isnt described is how to generate the links for these facets

If this is the query to return everything within 10km :
&q=:&fq={!geofilt sfield=store}&pt=45.15,-93.85&d=10
-what then would be the syntax to search for everything between 5 and 10km ?

What would the solr query-links look like for the following facets?

distance
0-1km (2)
1-5km (0)
5-20km (0)
20-50km (0)
50-100km (0)
100-250km (0)

Cheers!
Fergus

Mime
View raw message