Checks the internal cache for an appropriate entry, and if none is found, reads the term values in
CopyC#
field
and returns an array of size
CopyC#
reader.maxDoc()
containing 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#
string[] GetStrings(
	IndexReader reader,
	string field
)
Visual Basic
Function GetStrings ( _
	reader As IndexReader, _
	field As String _
) As String()
Visual C++
array<String^>^ GetStrings(
	IndexReader^ reader, 
	String^ field
)

Parameters

reader
Type: Lucene.Net.Index..::..IndexReader
Used to get field values.
field
Type: System..::..String
Which field contains the strings.

Return Value

The values in the given field for each document.

See Also