lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Elschot <>
Subject Re: [jira] Commented: (LUCENE-584) Decouple Filter from BitSet
Date Mon, 04 Sep 2006 16:08:36 GMT
On Monday 04 September 2006 13:43, Eks Dev (JIRA) wrote:
[ ] 
> Eks Dev commented on LUCENE-584:
> --------------------------------
> Paul,
> What is exact semantics of skipTo(int) in Matcher?
> - is it OK to skip back and forth before I reach end?
> e.g.: skipTo(0); skipTo(333); skipTo(0); 
> - once I reach end, skipTo(int) does nothing (BitsMatcher, exhausted). It is 
impossible to reposition Matcher after that
> Is this intended behavior, "skip forward until you reach end, and then, you 
are at the end :)" ? 

This last one. From the javadocs (in the patch):

"Skips to the first match whose document number is greater than or equal to a 
given target. If, after next() or skipTo(int) has been called the first time, 
the target is before or at the current document, the current document may 
change to the next matching document."

Paul Elschot

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

View raw message