Class ConstantScoreQuery.ConstantBulkScorer
We return this as our 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.
Inherited Members
Namespace: Lucene.Net.Search
Assembly: Lucene.Net.dll
Syntax
protected class ConstantScoreQuery.ConstantBulkScorer : BulkScorer
Constructors
ConstantBulkScorer(ConstantScoreQuery, BulkScorer, Weight, float)
We return this as our 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.
Declaration
public ConstantBulkScorer(ConstantScoreQuery outerInstance, BulkScorer bulkScorer, Weight weight, float theScore)
Parameters
Type | Name | Description |
---|---|---|
ConstantScoreQuery | outerInstance | |
BulkScorer | bulkScorer | |
Weight | weight | |
float | theScore |
Methods
Score(ICollector, int)
Collects matching documents in a range.
Declaration
public override bool Score(ICollector collector, int max)
Parameters
Type | Name | Description |
---|---|---|
ICollector | collector | The collector to which all matching documents are passed. |
int | max | Score up to, but not including, this doc |
Returns
Type | Description |
---|---|
bool |
|