Returns an array of {@link Field}s with the given name. Do not use with lazy loaded fields. This method returns an empty array when there are no matching fields. It never returns null.

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

Syntax

C#
public Field[] GetFields(
	string name
)
Visual Basic
Public Function GetFields ( _
	name As String _
) As Field()
Visual C++
public:
array<Field^>^ GetFields(
	String^ name
)

Parameters

name
Type: System..::..String
the name of the field

Return Value

a
CopyC#
Field[]
array

See Also