QnaList > Groups > Lucene-Solr-User > Nov 2008
faq

Boosting Newer Inserted Items In Search?

Hi!
When doing a search we want to have a have parameters that we set of how to
boost different
scores. for example we want to have the ability to boost newer items in some
case and in some not,
like a sliding scale from only time to only relevancy.
What is the best way of doing this, using Solrj?
Regards Erik

asked Nov 10 2008 at 20:25

Erik Holstad's gravatar image



1 Replies for : Boosting Newer Inserted Items In Search?
My gut tells me that multiplying a function of the date field with the
full-text relevancy score will work better than adding a function of
the date field.
BoostedQuery can do this via BoostQParserPlugin
http://lucene.apache.org/solr/api/org/apache/solr/search/BoostQParserPlugin.html
And for the function, you could make it flatter or steeper depending
on how much you wanted date to influence the score.  Might try a recip
function or a linear function on the ord of the date field.  We don't
yet have any functions that work on the actual date values.
http://wiki.apache.org/solr/FunctionQuery
-Yonik

answered Nov 10 2008 at 22:59

Yonik Seeley's gravatar image


Related discussions

Tagged

Group Lucene-solr-user

asked Nov 10 2008 at 20:25

active Nov 10 2008 at 22:59

posts:2

users:2

©2013 QnaList.com