Chris Hostetter wrote:
: But I think it should be the desired behavior for skipTo() to not skip
: at all
: if curDoc==target already? Which means we should clearify the javadocs.

i'm not certain about that ... in theory (given the way the
javadocs are currently written) shouldn't s.skipTo(0) always be
functionally equivilent to s.next() ?

True, that is what the javadocs currently describe.

I was just wondering if this behavior is what the average user would expect from a skipTo() method without reading the javadocs carefully enough. (I guess when I started using Lucene I didn't expect
skipTo() to move to the next doc if target<=curDoc)

But on the other hand this would be a public API change and therefore we should probably not change
the spec. (as you just commented on 914)



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

Reply via email to