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