Creates a new {@link TopScoreDocCollector} given the number of hits to collect and whether documents are scored in order by the input {@link Scorer} to {@link #SetScorer(Scorer)}.

NOTE: The instances returned by this method pre-allocate a full array of length

CopyC#
numHits
, and fill the array with sentinel objects.

Namespace: Lucene.Net.Search
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
public static TopScoreDocCollector create(
	int numHits,
	bool docsScoredInOrder
)
Visual Basic
Public Shared Function create ( _
	numHits As Integer, _
	docsScoredInOrder As Boolean _
) As TopScoreDocCollector
Visual C++
public:
static TopScoreDocCollector^ create(
	int numHits, 
	bool docsScoredInOrder
)

Parameters

numHits
Type: System..::..Int32

[Missing <param name="numHits"/> documentation for "M:Lucene.Net.Search.TopScoreDocCollector.create(System.Int32,System.Boolean)"]

docsScoredInOrder
Type: System..::..Boolean

[Missing <param name="docsScoredInOrder"/> documentation for "M:Lucene.Net.Search.TopScoreDocCollector.create(System.Int32,System.Boolean)"]

Return Value

[Missing <returns> documentation for "M:Lucene.Net.Search.TopScoreDocCollector.create(System.Int32,System.Boolean)"]

See Also