lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Elschot <>
Subject Re: BooleanWeight.normalize(float) doesn't normalize prohibited clauses?
Date Thu, 11 May 2006 18:46:20 GMT
On Thursday 11 May 2006 09:49, Chris Hostetter wrote:
> : > Does anyone know why normalize ignores the prohibited clauses?  was that
> : > just intended to be an optimization (save time calculating stuff for
> : > clauses we don't care about scoring in depth) ... ?
> :
> : A prohibited clause will never occur in any matching document, so it
> : will never need to take part in any score value calculation.
> that's true ... but when calculating an Explanation, the only way
> BooleanWeight.explain has to determine wether or not a clause matched, is
> by looking at the value of it's Explanation -- if the clause has never
> been normalized, it's Explanation may be inacurate.  As i mentioned...

If class Explanation would have a boolean attribute indicating whether
or not there was a match, the Explanation for BooleanQuery could
simply use this value from the Explanation of the prohibited clause.

Paul Elschot

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message