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 |
Create(Int32, ScoreDoc, Boolean)
Creates a new TopScoreDocCollector given the number of hits to collect, the bottom of the previous page, 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, ScoreDoc after, bool docsScoredInOrder)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | numHits | |
ScoreDoc | after | |
System.Boolean | docsScoredInOrder |
Returns
Type | Description |
---|---|
TopScoreDocCollector |