: Hi, following LUCENE-912, looking closer at skipTo() in
: DisjunctionMaxScorer, it seems not to follow Scorer.skipTo() "contract":
:
:      "Skips to the first match beyond the current whose document number is
: greater than or equal to a given target."
:
: It is the "__beyond__ the current" requirement that is not satisfied.

skipTo semantics have always made my head hurt, but it may be that the
contract is expressed too simplisticly ... i believe the expectation is
that while skipTo should always "skip to the first match beyond the
current whose document number is greater than or equal to a given target."
there is a unwritten expectation that the "target" will always be greater
then the current s.doc().

I may be wrong about that ... i am afterall speculating about an unwritten
assumption.

The "behaves as if written" clause of the skipTo docs however make it
clear that anytime skipTo is called, the document should be advanced at
least one match no matter what the input is .. and your test seems to
indicate this is also not the case.




-Hoss


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to