atom feed30 messages in org.apache.lucene.java-devRe: Whither Query Norm?
FromSent OnAttachments
Grant IngersollNov 20, 2009 7:55 am 
Mark MillerNov 20, 2009 8:04 am 
Jake MannixNov 20, 2009 8:14 am 
Mark MillerNov 20, 2009 8:14 am 
Jake MannixNov 20, 2009 8:18 am 
Grant IngersollNov 20, 2009 10:08 am 
Jake MannixNov 20, 2009 10:24 am 
Grant IngersollNov 20, 2009 1:58 pm 
Mark MillerNov 20, 2009 2:24 pm 
Jake MannixNov 20, 2009 2:31 pm 
Mark MillerNov 20, 2009 2:39 pm 
Mark MillerNov 20, 2009 2:50 pm 
Jake MannixNov 20, 2009 3:39 pm 
Mark MillerNov 20, 2009 4:09 pm 
Mark MillerNov 20, 2009 4:20 pm 
Jake MannixNov 20, 2009 4:36 pm 
Jake MannixNov 20, 2009 4:42 pm 
Jake MannixNov 20, 2009 4:49 pm 
Mark MillerNov 20, 2009 4:49 pm 
Mark MillerNov 20, 2009 4:51 pm 
Jake MannixNov 20, 2009 4:56 pm 
Mark MillerNov 20, 2009 5:02 pm 
Jake MannixNov 20, 2009 5:10 pm 
Jake MannixNov 20, 2009 5:13 pm 
Otis GospodneticNov 24, 2009 9:18 pm 
Otis GospodneticNov 24, 2009 9:31 pm 
Jake MannixNov 24, 2009 9:39 pm 
Jake MannixNov 24, 2009 9:43 pm 
Jake MannixNov 24, 2009 9:55 pm 
Jake MannixNov 24, 2009 10:30 pm 
Subject:Re: Whither Query Norm?
From:Mark Miller (mark@gmail.com)
Date:Nov 20, 2009 8:04:19 am
List:org.apache.lucene.java-dev

Grant Ingersoll wrote:

For a long time now, we've been telling people not to compare scores across
queries, yet we maintain the queryNorm() code as an attempt to do this and the
javadocs even promote it. I'm in the process of researching this some more
(references welcomed), but wanted to hear what people think about it here. I
haven't profiled it just yet, but it seems like a good chunk of wasted
computation to me (loops, divisions and square roots). At a minimum, I think we
might be able to refactor the callback mechanism for it just as we did for the
collectors, such that we push of the actual calculation of the sum of squares
into Similarity, instead of just doing 1/sqrt(sumSqs). That way, when people
want to override queryNorm() to return 1, they are saving more than just the
1/sqrt calculation. I haven't tested it yet, but wanted to find out what others
think.

Thoughts?

Here is old discussion http://issues.apache.org/jira/browse/LUCENE-1896.

Its essentially no cost and has minor benefits - I'm still +1 for keeping it.