lucene-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 DavidSmiley
Date Wed, 19 Jun 2019 03:50:37 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 DavidSmiley:
https://wiki.apache.org/solr/SpatialSearch?action=diff&rev1=90&rev2=91

Comment:
Fix: boost QParser has one local param: 'b', not 'f'

  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]]
+  . [[http://localhost:8983/solr/select?fl=name,store,score&q={!boost%20b=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
b=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...

Mime
View raw message