On Tuesday 25 September 2007 14:51, melix wrote: > > Great, hope it will help others than me :) > > Here's another one for you. As long as I understand, the skipTo method > contract is to skip to the next document whose id is *greater or equal* to > the target. However, it seems that the SpansScorer behaves differently : > from the following code, I assume that if the current doc *is* actually the > target, then you shoud avoid a call to setFreqCurrentDoc(), because it moves > ahead. Am I right ?
No. Have a look at the javadoc of Scorer.skipTo(), it talks about the document beyond the current greater than or equal to the given argument. Regards, Paul Elschot --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
