Method Create
Create(Int32, Boolean)
Creates a new TopScoreDocCollector given the number of hits to collect and whether documents are scored in order by the input Scorer to SetScorer(Scorer).
NOTE: The instances returned by this method
pre-allocate a full array of length
numHits
, and fill the array with sentinel
objects.
Declaration
public static TopScoreDocCollector Create(int numHits, bool docsScoredInOrder)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | numHits | |
System.Boolean | docsScoredInOrder |
Returns
Type | Description |
---|---|
TopScoreDocCollector |