A field is a section of a Document. Each field has two parts, a name and a value. Values may be free text, provided as a String or as a Reader, or they may be atomic keywords, which are not further processed. Such keywords may be used to represent dates, urls, etc. Fields are optionally stored in the index, so that they may be returned with hits on the document.

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

Syntax

C#
[SerializableAttribute]
public sealed class Field : AbstractField, 
	Fieldable
Visual Basic
<SerializableAttribute> _
Public NotInheritable Class Field _
	Inherits AbstractField _
	Implements Fieldable
Visual C++
[SerializableAttribute]
public ref class Field sealed : public AbstractField, 
	Fieldable

Inheritance Hierarchy

System..::..Object
  Lucene.Net.Documents..::..AbstractField
    Lucene.Net.Documents..::..Field

See Also