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] Trivial Update of "SpatialSearch" by YonikSeeley
Date Thu, 10 Mar 2011 17:42:08 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: use simpler bf instead of bq.
http://wiki.apache.org/solr/SpatialSearch?action=diff&rev1=59&rev2=60

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

  == 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&defType=dismax&q.alt=*:*&fq={!geofilt}&sfield=store&pt=45.15,-93.85&d=50&bq=_val_:"recip(geodist(),%202,%20200,%2020)"^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]]
+  . [[http://localhost:8983/solr/select?fl=name,store,score&defType=dismax&q.alt=*:*&fq={!geofilt}&sfield=store&pt=45.15,-93.85&d=50&bf=recip(geodist(),2,200,20)&sort=score%20desc|...&defType=dismax&q.alt=*:*&fq={!geofilt}&sfield=store&pt=45.15,-93.85&d=50&bf=recip(geodist(),2,200,20)&sort=score
desc]]
  
  
  = Advanced Spatial Options - Under Development =

Mime
View raw message