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=49&rev2=50

--------------------------------------------------

  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.
  
  == 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 City, State or distance:
+ 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"
 AND city:"Jacksonville") OR 
_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() asc]]
+  . 
[[http://localhost:8983/solr/select?fl=name,store,city,state&q=*:*&fq=(state:"FL"
 AND city:"Jacksonville") OR 
_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() asc]]
  
  
  = Advanced Spatial Options - Under Development =

Reply via email to