lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jean Sini" <>
Subject Efficiently paginating results.
Date Thu, 27 Apr 2006 18:44:44 GMT

Our application presents search results in a paginated form.

We were unable to find Searcher methods that would return, say, 'n'
(typically, 10) hits after a start offset 'k'.

So we're currently using the Hits collection returned by,
and using its Hits.doc(i) method to get the ith hit, with i between k and
k+n. Is that the most efficient way to do that? Is there a better way (e.g.
some form of Filter on the query itself)? 






  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message