: > "Boost Functions" to influence the score. How would that work in order to
: > improve the score of recent documents? (I have a timestamp field in the

: I've been using expressions like these in boolean queries, based on  a
: "broadcast_date" field:
:
: _val_:"linear(recip(rord(broadcast_date),1,1000,1000),11,0)"

: I'm not sure off the top of my head how to use this with dismax queries 
though.

with teh dismax request handler, you can specify a "bq" param which takes
in a raw lucene query for boostig -- the query above with the _val_ sytnax
would work htere -- but the DisMax handler also has explicit support for
boost function parsing with the "bf" param, so you could say...

http://localhost:8983/solr/search?qt=dismax&q=hoss&bf=linear(recip(rord(broadcast_date),1,1000,1000),11,0)

http://incubator.apache.org/solr/docs/api/org/apache/solr/request/DisMaxRequestHandler.html

-Hoss

Reply via email to