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 HossMan:
http://wiki.apache.org/solr/SpatialSearch?action=diff&rev1=84&rev2=85

Comment:
more examples of distance boosting besides dismax bf

   . 
[[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) ==
+ == How to boost closest results ==
- It is possible also boost the query by closest results by combining bf with 
geodist():
+ It is possible also boost the score of a query by closest by factoring your 
function into the score of your main query...
  
+ * An example using the 'boost' parser with an arbitrary query...
+  . 
[[http://localhost:8983/solr/select?fl=name,store,score&q={!boost%20f=recip%28geodist%28%29,2,200,20%29}canon&fq={!geofilt}&sfield=store&pt=45.15,-93.85&d=50&sort=score%20desc|..&q={!boost
 
f=recip(geodist(),2,200,20)}canon&fq={!geofilt}&sfield=store&pt=45.15,-93.85&d=50&sort=score
 desc]]
+ * An example using the 'boost' param with edismax...
+  . 
[[http://localhost:8983/solr/select?fl=name,store,score&defType=edismax&q.alt=*:*&fq={!geofilt}&sfield=store&pt=45.15,-93.85&d=50&boost=recip%28geodist%28%29,2,200,20%29&sort=score%20desc|...&defType=edismax&q.alt=*:*&fq={!geofilt}&sfield=store&pt=45.15,-93.85&d=50&boost=recip(geodist(),2,200,20)&sort=score
 desc]]
+ * An older example using 'bf' and dismax...
   . 
[[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 Search =

Reply via email to