public abstract class BulkScorer extends Object
Weight.bulkScorer(org.apache.lucene.index.LeafReaderContext, org.apache.lucene.util.Bits)
. Only
queries that have a more optimized means of scoring
across a range of documents need to override this.
Otherwise, a default implementation is wrapped around
the Scorer
returned by Weight.scorer(org.apache.lucene.index.LeafReaderContext, org.apache.lucene.util.Bits)
.Constructor and Description |
---|
BulkScorer() |
Modifier and Type | Method and Description |
---|---|
void |
score(LeafCollector collector)
Scores and collects all matching documents.
|
abstract boolean |
score(LeafCollector collector,
int max)
Collects matching documents in a range.
|
public void score(LeafCollector collector) throws IOException
collector
- The collector to which all matching documents are passed.IOException
public abstract boolean score(LeafCollector collector, int max) throws IOException
collector
- The collector to which all matching documents are passed.max
- Score up to, but not including, this docIOException
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.