On Monday 04 September 2006 13:43, Eks Dev (JIRA) wrote:
>     
[ http://issues.apache.org/jira/browse/LUCENE-584?page=comments#action_12432497 
] 
>             
> 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."

Regards,
Paul Elschot

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

Reply via email to