;
> -
> 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
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
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
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
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