lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <>
Subject Re: Exit a search when have enough results
Date Fri, 26 Oct 2007 21:03:22 GMT
On 10/26/07, John Patterson <> 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).


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

View raw message