Returns a field with the given name if any exist in this document, or null. If multiple fields exists with this name, this method returns the first value added. Do not use this method with lazy loaded fields.

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

Syntax

C#
public Field GetField(
	string name
)
Visual Basic
Public Function GetField ( _
	name As String _
) As Field
Visual C++
public:
Field^ GetField(
	String^ name
)

Parameters

name
Type: System..::..String

[Missing <param name="name"/> documentation for "M:Lucene.Net.Documents.Document.GetField(System.String)"]

Return Value

[Missing <returns> documentation for "M:Lucene.Net.Documents.Document.GetField(System.String)"]

See Also