lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anshum <ansh...@gmail.com>
Subject Re: how to get the first term from index?
Date Thu, 30 Sep 2010 18:34:00 GMT
Hi Sahin,
Incase you intend to get an enumerator on the terms in an index, you could
use the following call [indexreader.terms()] from IndexReader to get the
enumerator on terms and just iterate.

http://lucene.apache.org/java/3_0_1/api/core/org/apache/lucene/index/IndexReader.html#terms()
Hope this is what you intended!

--
Anshum Gupta
http://ai-cafe.blogspot.com


On Thu, Sep 30, 2010 at 11:54 PM, Sahin Buyrukbilen <
sahin.buyrukbilen@gmail.com> wrote:

> Hi all,
>
> I need to get the first term in my index and iterate it. Can anybody help
> me?
>
> Best.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message