> 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


      

Reply via email to