public abstract class BulkScorer extends Object
Weight.bulkScorer(org.apache.lucene.index.AtomicReaderContext, boolean, 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.AtomicReaderContext, org.apache.lucene.util.Bits)
.Constructor and Description |
---|
BulkScorer() |
public void score(Collector collector) throws IOException
collector
- The collector to which all matching documents are passed.IOException
public abstract boolean score(Collector 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-2014 Apache Software Foundation. All Rights Reserved.