how do I normalise a solr/lucene score?

To quote http://wiki.apache.org/lucene-java/ScoresAsPercentages:

People frequently want to compute a “Percentage” from Lucene scores to determine what is a “100% perfect” match vs a “50%” match. This is also somethings called a “normalized score”

Don’t do this.

Seriously. Stop trying to think about your problem this way, it’s not going to end well.

That page does give an example of how you could in theory do this, but it’s very hard.

Leave a Comment