Example usage for Java org.apache.lucene.index Term fields, constructors, methods, implement or subclass
The text is from its open source code.
Term(String fld, BytesRef bytes) Constructs a Term with the given field and bytes. | |
Term(String fld, BytesRefBuilder bytesBuilder) Constructs a Term with the given field and the bytes from a builder. | |
Term(String fld, String text) Constructs a Term with the given field and text. | |
Term(String fld) Constructs a Term with the given field and empty text. |
int | compareTo(Term other) Compares two terms, returning a negative integer if this term belongs before the argument, zero if this term is equal to the argument, and a positive integer if this term belongs after the argument. |
boolean | equals(Object obj) |
int | hashCode() |
String | text() Returns the text of this term. |
String | toString() |
String | toString(BytesRef termText) Returns human-readable form of the term text. |