Constructor Term
Term(String, 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.
Declaration
public Term(String fld, String txt)
Parameters
Type | Name | Description |
---|---|---|
System.String | fld | |
System.String | txt |
Term(String)
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.
Declaration
public Term(String fld)
Parameters
Type | Name | Description |
---|---|---|
System.String | fld |