Constructs a Term with the given field and text.

Note that a null field or null text value results in undefined behavior for most Lucene APIs that accept a Term parameter.

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

Syntax

C#
public Term(
	string fld,
	string txt
)
Visual Basic
Public Sub New ( _
	fld As String, _
	txt As String _
)
Visual C++
public:
Term(
	String^ fld, 
	String^ txt
)

Parameters

fld
Type: System..::..String

[Missing <param name="fld"/> documentation for "M:Lucene.Net.Index.Term.#ctor(System.String,System.String)"]

txt
Type: System..::..String

[Missing <param name="txt"/> documentation for "M:Lucene.Net.Index.Term.#ctor(System.String,System.String)"]

See Also