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 Sun, 06 Feb 2011 05:38:52 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=52&rev2=53

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

  
   . [[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]]
  
- == How to boost closest results ==
+ == How to boost closest results (with dismax) ==
  It is possible also boost the query by closest results by combining bq with geodist():
  
-  . [[http://localhost:8983/solr/select?fl=name,store,score&q=*:*&fq={!geofilt}&sfield=store&pt=45.15,-93.85&d=50&bq=_val_:"recip(geodist(),
2, 200, 20)"^1.0&sort=score%20desc|...&q=*:*&fq={!geofilt}&sfield=store&pt=45.15,-93.85&d=50&bq=_val_:"recip(geodist(),
2, 200, 20)"^1.0&sort=score desc]]
+  . [[http://localhost:8983/solr/select?fl=name,store,score&defType=dismax&q.alt=*:*&fq={!geofilt}&sfield=store&pt=45.15,-93.85&d=50&bq=_val_:"recip(geodist(),
2, 200, 20)"^1.0&sort=score%20desc|...&defType=dismax&q.alt=*:*&fq={!geofilt}&sfield=store&pt=45.15,-93.85&d=50&bq=_val_:"recip(geodist(),
2, 200, 20)"^1.0&sort=score desc]]
  
  
  = Advanced Spatial Options - Under Development =

Mime
View raw message