You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by muneeb <mu...@hotmail.com> on 2010/03/15 10:41:32 UTC
Custom Score for Solr
Hi,
I have added a few extra fields to my solr document, which I want to effect
the default scoring algorithm. Could anyone guide me on how to start
customizing the solr scoring algorithm?
My Scenario:
As an example: my each indexed article has a field 'readerCount' which holds
the number of people who read that article. I want this property of document
to be integrated into the scoring, so that the scoring would be biased
towards the articles with most readers.
I am using Solr 1.4 with Solrj Client.
Thanks very much.
-M
--
View this message in context: http://old.nabble.com/Custom-Score-for-Solr-tp27902048p27902048.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Custom Score for Solr
Posted by Ahmet Arslan <io...@yahoo.com>.
> I have added a few extra fields to my solr document, which
> I want to effect
> the default scoring algorithm. Could anyone guide me on how
> to start
> customizing the solr scoring algorithm?
>
> My Scenario:
> As an example: my each indexed article has a field
> 'readerCount' which holds
> the number of people who read that article. I want this
> property of document
> to be integrated into the scoring, so that the scoring
> would be biased
> towards the articles with most readers.
> I am using Solr 1.4 with Solrj Client.
Function Queries [1] can do that: - Using the values in Fields as factors in scoring.
Also if you want to multiply it with the relevancy score, rather than add it, you can use boost query parser [2]
[1]http://wiki.apache.org/solr/FunctionQuery
[2]http://lucene.apache.org/solr/api/org/apache/solr/search/BoostQParserPlugin.html