Re: Collector Pagination

2009-06-19 Thread João Silva
; > - > Uwe Schindler > H.-H.-Meier-Allee 63, D-28213 Bremen > http://www.thetaphi.de > eMail: u...@thetaphi.de > > > -Original Message- > > From: João Silva [mailto:galaio.si...@gmail.com] > > Sent: Friday, June 19, 2009 2:17 PM > > To: java-user@luce

RE: Collector Pagination

2009-06-19 Thread Uwe Schindler
9, 2009 2:17 PM > To: java-user@lucene.apache.org > Subject: Re: Collector Pagination > > well, > > i have somthing like that: > > int hitsPerPage = 10; > IndexSearcher searcher = new IndexSearcher(this.indexPath); > TopDocCollector coll

Re: Collector Pagination

2009-06-19 Thread João Silva
well, i have somthing like that: int hitsPerPage = 10; IndexSearcher searcher = new IndexSearcher(this.indexPath); TopDocCollector collector = new TopDocCollector(hitsPerPage); Query query = new QueryParser("", this.analizer).parse(DocumentRepositoryEntry.Fiel

Re: Collector Pagination

2009-06-19 Thread João Silva
Thanks Uwe, I will see that. Galaio On Fri, Jun 19, 2009 at 12:36 PM, Uwe Schindler wrote: > Hallo, > > Just retrieve the TopDocs for the first n documents, where n = > offset+count, > where offset is the first hit on the page (0-based) and count the number > per > page. > To display the resu

RE: Collector Pagination

2009-06-19 Thread Uwe Schindler
Hallo, Just retrieve the TopDocs for the first n documents, where n = offset+count, where offset is the first hit on the page (0-based) and count the number per page. To display the results you would then just start at offset in TopDocs and retrieve the stored field from there to offset+count. Uw