lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Miles Barr <mi...@magpie.net>
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
>searching.
>
>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
>important. 
>
>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.




Miles

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