lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <yo...@apache.org>
Subject Re: Paging & Sorting
Date Tue, 05 Aug 2008 22:48:58 GMT
On Tue, Aug 5, 2008 at 6:03 PM, Neeraj Gupta <neeraj.gupta.2@hewitt.com> 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.

-Yonik

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