On Tue, Dec 8, 2009 at 10:31 AM, Yonik Seeley <yo...@lucidimagination.com> wrote: > On Tue, Dec 8, 2009 at 10:25 AM, Michael McCandless > <luc...@mikemccandless.com> wrote: >> Sorry, right, test passed on trunk, but it's still not valid even on >> trunk (I think?). Ie TermEnum.term() is undefined until you've called >> next? > > You're thinking TermDocs I think - TermEnum.term() is defined to be > positioned on or after the term given during it's creation.
Right, and if that term was beyond the end of all terms, .term() must return null in the TermEnum returned to you. Flipping between flex & not is getting tricky :) Mike --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org For additional commands, e-mail: java-dev-h...@lucene.apache.org