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. Regards, Paul Elschot --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]