You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Patrick Diviacco <pa...@gmail.com> on 2011/03/21 17:09:54 UTC

How to normalize Lucene scores... (over all queries)

I'm combining several scores for my queries performed with Lucene and other
software.

My issue is that I have lucene scores + other scores (not related to Lucene)
for each query result.

The other scores are all normalized between 1 and 0.

I need to normalize Lucene scores (over all queries) because If I don't
normalize Lucene scores in the same way I'm going to have unbalanced
results...

How can I make it ?
thanks

Re: How to normalize Lucene scores... (over all queries)

Posted by Erick Erickson <er...@gmail.com>.
You can't. If by "normalize" you mean compare the scores
between two different queries, it's meaningless. The scores
from one query to another are not comparable.

If by "normalize" you mean make into a value between 0 and 1,
anywhere you have access to raw scores I believe you also have
access to the max score, and you can just divide.

But this smells like an XY problem. Can you back up and tell
us what the use case you're trying to solve is? Maybe there are
other possibilities.

Best
Erick

On Mon, Mar 21, 2011 at 12:09 PM, Patrick Diviacco
<pa...@gmail.com> wrote:
> I'm combining several scores for my queries performed with Lucene and other
> software.
>
> My issue is that I have lucene scores + other scores (not related to Lucene)
> for each query result.
>
> The other scores are all normalized between 1 and 0.
>
> I need to normalize Lucene scores (over all queries) because If I don't
> normalize Lucene scores in the same way I'm going to have unbalanced
> results...
>
> How can I make it ?
> thanks
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org