RE: How to loop through all the entries for a field
That worked great. Thanks >>> From: "Digy" To: Date: 10/23/2009 8:54 AM Subject: RE: How to loop through all the entries for a field while( (term = tEnum.Term())!=null ) { Lucene.Net.Index.TermDocs tDocs = r
RE: How to loop through all the entries for a field
To: [email protected] Subject: Re: How to loop through all the entries for a field This is what I have: reader = IndexReader.Open(Commons.Constants._FSDirectory); termEnum = reader.Terms(new Term("BookTitle", ""))
Re: How to loop through all the entries for a field
break; } termEnum.Next(); } But i'm not sure what to do with termDocs to get the information contained in PageCount. The pages vary from book to book. Thanks >>> From: digy digy To: Date: 10/23/2009 2:06 AM Subject: Re: How to loop thr
Re: How to loop through all the entries for a field
control.Items.Add(map); > > termEnum.Next(); > } > > > >>> > > From: "Eric Advincula" > To: > Date: 10/22/2009 2:29 PM > Subject: RE: How to loop through all the entries for a field >
RE: How to loop through all the entries for a field
map = new SearchResultMap(); map.Title = term.Text(); control.Items.Add(map); termEnum.Next(); } >>> From: "Eric Advincula" To: Date: 10/22/2009 2:29 PM Subject: RE: How to loop through all the entri
RE: How to loop through all the entries for a field
map.Title = term.Text(); control.Items.Add(map); termEnum.Next(); } thanks for all the help >>> From: "Eric Advincula" To: Date: 10/22/2009 2:22 PM Subject: RE: How to loop through all the entries for a field It works
RE: How to loop through all the entries for a field
It works but continues even after the listing. How do you know if your on your last term? I tried it and it does work but continues. How do you know to check if its the last entry? Thanks >>> From: "Digy" To: Date: 10/22/2009 12:13 PM Subject: RE: How to loop through
RE: How to loop through all the entries for a field
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.Wr