protected class ConstantScoreQuery.ConstantBulkScorer extends BulkScorer
BulkScorer
so that if the CSQ
wraps a query with its own optimized top-level
scorer (e.g. BooleanScorer) we can use that
top-level scorer.Constructor and Description |
---|
ConstantScoreQuery.ConstantBulkScorer(BulkScorer bulkScorer,
Weight weight,
float theScore) |
Modifier and Type | Method and Description |
---|---|
boolean |
score(Collector collector,
int max)
Collects matching documents in a range.
|
score
public ConstantScoreQuery.ConstantBulkScorer(BulkScorer bulkScorer, Weight weight, float theScore)
public boolean score(Collector collector, int max) throws IOException
BulkScorer
score
in class BulkScorer
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.