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
ble.com/Exit-a-search-when-have-enough-results-tf4699633.html#a13435613
Sent from the Lucene - Java Users mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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
continue.
Also, I am implementing a "multi-facetted" search (to use a solr term and
seem to need to call Searcher.doc(int) for every result. The Javadoc says
that is bad but how else can I analyse the results?
Thanks,
John
--
View this message in context:
http://www.nabble.com/Exit-a-s