On Tue, Aug 5, 2008 at 6:03 PM, Neeraj Gupta <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to