lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Miles Barr <>
Subject Re: Limit number of search results
Date Tue, 25 Jul 2006 14:58:33 GMT
headhunter wrote:

>I am looking for a way to limit the number of search results I retrieve when
>I am only interested in (let's say) the first ten hits of a query.. maybe I
>want to look at hits ten..twenty to, but usually only the first results are
>Right now lucene searches through the entire index, returning way more than
>the desired ten documents. 
>Any way to limit this?

Lucene only loads the first 100 hits from the index, the rest of the 
results are lazy loaded. I don't think you can reduce this number 
without changing the code.


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

View raw message