Term Constructor | Constructs a Term with the given field and text. |
CompareTo | Overloaded. |
CreateTerm | Optimized construction of new Terms by reusing same field as this Term - avoids field.intern() overhead |
Equals | Compares two terms, returning true iff they have the same field and text. |
Field | Returns the field of this term, an interned string. The field indicates the part of a document which this term came from. |
GetHashCode | Combines the hashCode() of the field and the text. |
GetType (inherited from Object) | Gets the Type of the current instance. |
Text | Returns the text of this term. In the case of words, this is simply the text of the word. In the case of dates and other types, this is an encoding of the object as a string. |
ToString |