lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <yo...@apache.org>
Subject Re: TermDocs.skipTo error
Date Sat, 10 Nov 2007 22:49:16 GMT
On Nov 9, 2007 11:40 AM, Mike Streeton <mike.streeton@ardentiasearch.com> wrote:
> I have just tried this again using the index I built with lucene 2.1 but running the
test using lucene 2.2 and it works okay, so it seems to be something related to an index built
using lucene 2.2.

I bet you are triggering an issue in multi-level skip lists by
attempting to skipTo a target past maxDoc (which per the javadoc,
seems like it should be legal).

So a short term workaround for you might be to first test if the
target you are trying to skip to is less than maxDoc().

-Yonik

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message