lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <>
Subject Re: Paging & Sorting
Date Tue, 05 Aug 2008 22:48:58 GMT
On Tue, Aug 5, 2008 at 6:03 PM, Neeraj Gupta <> wrote:
> It means before Iteration Lucene has already spent time and memory in
> finding all the 50k documents and sorting them

Lucene uses a priority queue to only sort the top results, not all
matching results.
To more precisely specify the top "n" docs, see the expert level
search methods that return TopDocs.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message