I believe not. Just get out when term.field() != myTermName, interned.
-- Ian. On Mon, May 11, 2009 at 4:35 PM, Ian Vink <ianv...@gmail.com> wrote: > IndexReader rdr = IndexReader.Open(myFolder); > TermEnum terms = rdr.Terms((new Term(myTermName, ""))); > > (from .NET land, but it's all the same) > > This code works great, I can loop thru the terms nicely, but after it > returns all the myTermName terms, it goes into all other terms. > > Is there a way to limit the rdr.Terms to return only those whose field is > myTermName > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org