lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Solr Wiki] Trivial Update of "SpatialSearch" by YonikSeeley
Date Thu, 10 Mar 2011 16:46:27 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 YonikSeeley.
The comment on this change is: remove non-working link, add note.


  == How to combine with a sub-query to expand results ==
  It is possible to filter by other criteria with an OR clause. Here is an example that says
return by Jacksonville, FL or within 50 km from 45.15,-93.85:
-  . [[http://localhost:8983/solr/select?fl=name,store,city,state&q=*:*&fq=(state:"FL"%20AND%20city:"Jacksonville")%20OR%20_query_:"{!geofilt}"&sfield=store&pt=45.15,-93.85&d=50&sort=geodist()%20asc|...&q=*:*&fq=(state:"FL"
AND city:"Jacksonville") OR _query_:"{!geofilt}"&sfield=store&pt=45.15,-93.85&d=50&sort=geodist()
+  . ...&q=*:*&fq=(state:"FL" AND city:"Jacksonville") OR _query_:"{!geofilt}"&sfield=store&pt=45.15,-93.85&d=50&sort=geodist()
+ 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:

View raw message