lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Schultz <mike.schu...@gmail.com>
Subject Re: The way to customize ranking?
Date Mon, 27 Aug 2012 19:55:04 GMT
You can use CustomScoreQuery to combine a scalar field value (e.g. like the
amount of the paid placement) together with the textual relevancy.   You can
combine things anyway you want, e.g.

finalScore = textualScore + 1000.0 * scalarValue.

Or whatever makes sense.  It sounds like you want some kind of step
function, where if there is any scalar value, that overwhelms the score. 
This could do that for you.




--
View this message in context: http://lucene.472066.n3.nabble.com/The-way-to-customize-ranking-tp4002885p4003565.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message