Term

constructor(fld: String, bytes: BytesRef = BytesRef())

Constructs a Term with the given field and empty text. This serves two purposes: 1) reuse of a Term with the same field. 2) pattern for a query.

Parameters

fld

field's name


constructor(fld: String, bytesBuilder: BytesRefBuilder)

Constructs a Term with the given field and the bytes from a builder.

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


constructor(fld: String, text: String)

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.