Victoria,

Either use FunctionQuery's or hack around HitCollector.collect(int, float) in 
SolrIndexSearcher...and adjust the score using the additional values you 
mentioned.

Otis
--
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch

----- Original Message ----
From: Victoria Kaganski <[EMAIL PROTECTED]>
To: solr-user@lucene.apache.org
Sent: Thursday, October 25, 2007 7:19:46 AM
Subject: Score customization


Hi!
My system uses solr to build a searchable archive of documents. I need
to override the default scoring/similarity function because the
additional to the query relevancy factors have to be considered. For
example, each document has "updated on" and "source" fields, which
should influence the score too. I want the score/similarity function be
a sum of weighted (according to configuration) query relevancy, update
level and source rank (calculated at search time). 
Which is the best way to achieve required functionality? Should I
inherit and override existing code or should I build some independent
module (something like requestHandler) and to configure Solr to use it?
 
If I have to override the defaults, which class should it be? In
general, what am I actually trying to customize: scoring or similarity?
Thank you very much.
Victoria 



Reply via email to