Checks the internal cache for an appropriate entry, and if none is found, reads the terms in
CopyC#
field
as longs and returns an array of size
CopyC#
reader.maxDoc()
of the value each document has in the given field.

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

Syntax

C#
long[] GetLongs(
	IndexReader reader,
	string field,
	LongParser parser
)
Visual Basic
Function GetLongs ( _
	reader As IndexReader, _
	field As String, _
	parser As LongParser _
) As Long()
Visual C++
array<long long>^ GetLongs(
	IndexReader^ reader, 
	String^ field, 
	LongParser^ parser
)

Parameters

reader
Type: Lucene.Net.Index..::..IndexReader
Used to get field values.
field
Type: System..::..String
Which field contains the longs.
parser
Type: Lucene.Net.Search..::..LongParser
Computes integer for string values.

Return Value

The values in the given field for each document.

See Also