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 Sat, 27 Oct 2007 00:07:47 GMT
On 10/26/07, John Patterson <jdp2000@gmail.com> wrote:
> Yonik Seeley wrote:
> >
> > The easiest way would be to throw an exception from a custom hit
> > collector (and then catch it yourself and continue).
> >
>
> Cheers, I wonder if the performance penalty from throwing an exception is
> worth it?

If you have a handful of hits left no, but if thousands or more then
yes.  No way to tell ahead of time w/o testing with your specific
corpus and typical queries.

-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