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: Exit a search when have enough results
Date Fri, 26 Oct 2007 21:03:22 GMT
On 10/26/07, John Patterson <jdp2000@gmail.com> wrote:
> I am doing a simple conjunction search for documents that do not need to be
> scored or sorted and was wondering if there is a way to stop the search from
> a hit collector when I have enough hits?

The easiest way would be to throw an exception from a custom hit
collector (and then catch it yourself and continue).

-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