FAQ
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

Search Discussions

  • Erick Erickson at Mar 22, 2011 at 1:16 pm
    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
    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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupjava-user @
categorieslucene
postedMar 21, '11 at 4:10p
activeMar 22, '11 at 1:16p
posts2
users2
websitelucene.apache.org

People

Translate

site design / logo © 2022 Grokbase