lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Update of "SpatialSearch" by Bill Bell
Date Mon, 05 Dec 2011 03:20:33 GMT
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=80&rev2=81

  
  In order to return the number of results that match using a facet:
  
-  . [[http://localhost:8983/solr/select?sfield=store&pt=45.15,-93.85&facet.query={!geofilt
d=10 key=d10}&facet.query={!geofilt d=20 key=d20}&facet.query={!geofilt d=50 key=d50}]]
+  . [[http://localhost:8983/solr/select?sfield=store&pt=45.15,-93.85&facet.query={!geofilt
d=10 key=d10}&facet.query={!geofilt d=20 key=d20}&facet.query={!geofilt d=50 key=d50}|...&sfield=store&pt=45.15,-93.85&facet.query={!geofilt
d=10 key=d10}&facet.query={!geofilt d=20 key=d20}&facet.query={!geofilt d=50 key=d50}]]
  
  
  == Returning the distance ==
@@ -120, +120 @@

  Note: you can't try this example with the example schema since the "state" and "city" fields
haven't been defined.
  
  == How to facet by distance ==
- Faceting by distance can be done using the frange QParser.  Unfortunately, right now, it
is a bit inefficient, but it likely will be fine in most situations:
+ Faceting by distance can be done using the frange QParser.  Unfortunately, right now, it
is a bit inefficient, but it likely will be fine in most situations. Note: frange is actually
slower than geofilt.
  
   . [[http://localhost:8983/solr/select?q=*:*&sfield=store&pt=45.15,-93.85&facet.query={!frange%20l=0%20u=5}geodist()&facet.query={!frange%20l=5.001%20u=3000}geodist()&wt=xml&facet=true|&q=*:*&sfield=store&pt=45.15,-93.85&facet.query={!frange
l=0 u=5}geodist()&facet.query={!frange l=5.001 u=3000}geodist()]]
+ 
+  . [[http://localhost:8983/solr/select?sfield=store&pt=45.15,-93.85&facet.query={!geofilt
d=10 key=d10}&facet.query={!geofilt d=20 key=d20}&facet.query={!geofilt d=50 key=d50}|...&sfield=store&pt=45.15,-93.85&facet.query={!geofilt
d=10 key=d10}&facet.query={!geofilt d=20 key=d20}&facet.query={!geofilt d=50 key=d50}]]
+ 
  
  == How to boost closest results (with dismax) ==
  It is possible also boost the query by closest results by combining bf with geodist():

Mime
View raw message