Re: Exit a search when have enough results

2007-10-26 Thread Yonik Seeley
On 10/26/07, John Patterson <[EMAIL PROTECTED]> 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

Re: Exit a search when have enough results

2007-10-26 Thread John Patterson
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? -- View this message in context: http://www.nabble.com/Exit-a

Re: Exit a search when have enough results

2007-10-26 Thread Yonik Seeley
On 10/26/07, John Patterson <[EMAIL PROTECTED]> 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 except