Creates one of these objects.

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

Syntax

C#
public TopFieldDocs(
	int totalHits,
	ScoreDoc[] scoreDocs,
	SortField[] fields,
	float maxScore
)
Visual Basic
Public Sub New ( _
	totalHits As Integer, _
	scoreDocs As ScoreDoc(), _
	fields As SortField(), _
	maxScore As Single _
)
Visual C++
public:
TopFieldDocs(
	int totalHits, 
	array<ScoreDoc^>^ scoreDocs, 
	array<SortField^>^ fields, 
	float maxScore
)

Parameters

totalHits
Type: System..::..Int32
Total number of hits for the query.
scoreDocs
Type: array<Lucene.Net.Search..::..ScoreDoc>[]()[][]
The top hits for the query.
fields
Type: array<Lucene.Net.Search..::..SortField>[]()[][]
The sort criteria used to find the top hits.
maxScore
Type: System..::..Single
The maximum score encountered.

See Also