Construct to collect a given number of hits.

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

Syntax

C#
public TopFieldDocCollector(
	IndexReader reader,
	Sort sort,
	int numHits
)
Visual Basic
Public Sub New ( _
	reader As IndexReader, _
	sort As Sort, _
	numHits As Integer _
)
Visual C++
public:
TopFieldDocCollector(
	IndexReader^ reader, 
	Sort^ sort, 
	int numHits
)

Parameters

reader
Type: Lucene.Net.Index..::..IndexReader
the index to be searched
sort
Type: Lucene.Net.Search..::..Sort
the sort criteria
numHits
Type: System..::..Int32
the maximum number of hits to collect

See Also