lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Elschot <paul.elsc...@xs4all.nl>
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:
>     
[ 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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message