Creates a hit queue sorted by the given list of fields.

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

Syntax

C#
public FieldSortedHitQueue(
	IndexReader reader,
	SortField[] fields,
	int size
)
Visual Basic
Public Sub New ( _
	reader As IndexReader, _
	fields As SortField(), _
	size As Integer _
)
Visual C++
public:
FieldSortedHitQueue(
	IndexReader^ reader, 
	array<SortField^>^ fields, 
	int size
)

Parameters

reader
Type: Lucene.Net.Index..::..IndexReader
Index to use.
fields
Type: array<Lucene.Net.Search..::..SortField>[]()[][]
Fieldable names, in priority order (highest priority first). Cannot be
CopyC#
null
or empty.
size
Type: System..::..Int32
The number of hits to retain. Must be greater than zero.

See Also