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

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

CopyC#
numHits
.

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

Syntax

C#
public static FieldValueHitQueue Create(
	SortField[] fields,
	int size
)
Visual Basic
Public Shared Function Create ( _
	fields As SortField(), _
	size As Integer _
) As FieldValueHitQueue
Visual C++
public:
static FieldValueHitQueue^ Create(
	array<SortField^>^ fields, 
	int size
)

Parameters

fields
Type: array<Lucene.Net.Search..::..SortField>[]()[][]
SortField array we are sorting by 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.

Return Value

[Missing <returns> documentation for "M:Lucene.Net.Search.FieldValueHitQueue.Create(Lucene.Net.Search.SortField[],System.Int32)"]

See Also