Method GetBulkScorer
GetBulkScorer(AtomicReaderContext, Boolean, IBits)
Optional method, to return a BulkScorer to score the query and send hits to a ICollector. Only queries that have a different top-level approach need to override this; the default implementation pulls a normal Scorer and iterates and collects the resulting hits.
Declaration
public virtual BulkScorer GetBulkScorer(AtomicReaderContext context, bool scoreDocsInOrder, IBits acceptDocs)
Parameters
Type | Name | Description |
---|---|---|
AtomicReaderContext | context | The AtomicReaderContext for which to return the Scorer. |
System.Boolean | scoreDocsInOrder | Specifies whether in-order scoring of documents is required. Note
that if set to |
IBits | acceptDocs | IBits that represent the allowable docs to match (typically deleted docs but possibly filtering other documents) |
Returns
Type | Description |
---|---|
BulkScorer | A BulkScorer which scores documents and passes them to a collector. |