Something like that?

 

      Lucene.Net.Index.IndexReader reader =
Lucene.Net.Index.IndexReader.Open(dir);

      Lucene.Net.Index.TermEnum tEnum = reader.Terms(new
Lucene.Net.Index.Term("BookTitle"));

      do

      {

            Lucene.Net.Index.Term t = tEnum.Term();

            Console.WriteLine(t.Text());

      } while (tEnum.Next());

 

DIGY

 

-----Original Message-----
From: Eric Advincula [mailto:eric.advinc...@co.mohave.az.us] 
Sent: Thursday, October 22, 2009 6:51 PM
To: lucene-net-user@incubator.apache.org
Subject: How to loop through all the entries for a field

 

I have a field in called BookTitle.  I want to loop through all the entries
without doing a search.  I just want to get the list of BookTitle's that is
in this field:

 

I tried IndexReader but MaxDocs() doesnt work because it returns everything
and I have other fields in their which is allot bigger.  

 

Thanks

 

Reply via email to