Returns a {@link TopDocs} instance containing the given results. If
CopyC#
results
is null it means there are no results to return, either because there were 0 calls to collect() or because the arguments to topDocs were invalid.

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

Syntax

C#
public virtual TopDocs NewTopDocs(
	ScoreDoc[] results,
	int start
)
Visual Basic
Public Overridable Function NewTopDocs ( _
	results As ScoreDoc(), _
	start As Integer _
) As TopDocs
Visual C++
public:
virtual TopDocs^ NewTopDocs(
	array<ScoreDoc^>^ results, 
	int start
)

Parameters

results
Type: array<Lucene.Net.Search..::..ScoreDoc>[]()[][]

[Missing <param name="results"/> documentation for "M:Lucene.Net.Search.TopDocsCollector.NewTopDocs(Lucene.Net.Search.ScoreDoc[],System.Int32)"]

start
Type: System..::..Int32

[Missing <param name="start"/> documentation for "M:Lucene.Net.Search.TopDocsCollector.NewTopDocs(Lucene.Net.Search.ScoreDoc[],System.Int32)"]

Return Value

[Missing <returns> documentation for "M:Lucene.Net.Search.TopDocsCollector.NewTopDocs(Lucene.Net.Search.ScoreDoc[],System.Int32)"]

See Also