lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Schultz <>
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:
Sent from the Solr - User mailing list archive at

View raw message