sage-
> From: Chris Bamford [mailto:chris.bamf...@talktalk.net]
> Sent: Thursday, July 21, 2011 11:44 AM
> To: java-user@lucene.apache.org
> Subject: Re: Short circuiting Collector
>
>
> Hi Simon,
>
>
>
> scorer.advance(Scorer.NO_MORE_DOCS);
>
> Hmm...
java-user@lucene.apache.org
Sent: Wed, 20 Jul 2011 22:07
Subject: Re: Short circuiting Collector
you can advance the scorer to NO_MORE_DOCS if you have collected
enough documents this will stop the loop.
scorer.advance(Scorer.NO_MORE_DOCS);
simon
On Wed, Jul 20, 2011 at 6:53 PM, Devon H. O'D
you can advance the scorer to NO_MORE_DOCS if you have collected
enough documents this will stop the loop.
scorer.advance(Scorer.NO_MORE_DOCS);
simon
On Wed, Jul 20, 2011 at 6:53 PM, Devon H. O'Dell wrote:
> 2011/7/20 Chris Bamford :
>> Hi there,
>>
>> I have my own Collector implementation whi
2011/7/20 Chris Bamford :
> Hi there,
>
> I have my own Collector implementation which I use for searching, something
> like this skeleton:
[snip]
> Question: is there a way to prevent collect() being called after it has
> collected its quota (i.e. when collecting becomes false)? On large dat
Hi there,
I have my own Collector implementation which I use for searching, something
like this skeleton:
public class LightweightHitCollector extends Collector {
private int maxHits;
private int numHits;
private int docBase;
private boolean collecting;
private Scorer scorer