lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Lea <ian....@gmail.com>
Subject Re: IndexReader.Terms - internals
Date Mon, 11 May 2009 16:04:02 GMT
I believe not. Just get out when term.field() != myTermName, interned.


--
Ian.


On Mon, May 11, 2009 at 4:35 PM, Ian Vink <ianvink@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-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message