lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler" <...@thetaphi.de>
Subject RE: Collector Pagination
Date Fri, 19 Jun 2009 11:36:53 GMT
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.

Uwe

-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: uwe@thetaphi.de


> -----Original Message-----
> From: João Silva [mailto:galaio.silva@gmail.com]
> Sent: Friday, June 19, 2009 12:58 PM
> To: java-user@lucene.apache.org
> Subject: Collector Pagination
> 
> Hi,
> is there any api form of Hits pagination?
> for example, if i want to retreve the hits between
> an interval.
> 
> --
> Cumprimentos,
> João Carlos Galaio da Silva


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message