Term
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
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.
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.