Example usage for Java org.apache.lucene.index TermsEnum fields, constructors, methods, implement or subclass
The text is from its open source code.
TermsEnum | EMPTY An empty TermsEnum for quickly returning an empty instance e.g. |
TermsEnum() Sole constructor. |
AttributeSource | attributes() Returns the related attributes. |
int | docFreq() Returns the number of documents containing the current term. |
BytesRef | next() Increments the iteration to the next BytesRef in the iterator. |
long | ord() Returns ordinal position for current term. |
PostingsEnum | postings(PostingsEnum reuse) Get PostingsEnum for the current term. |
PostingsEnum | postings(PostingsEnum reuse, int flags) Get PostingsEnum for the current term, with control over whether freqs, positions, offsets or payloads are required. |
SeekStatus | seekCeil(BytesRef text) Seeks to the specified term, if it exists, or to the next (ceiling) term. |
boolean | seekExact(BytesRef text) Attempts to seek to the exact term, returning true if the term is found. |
void | seekExact(long ord) Seeks to the specified term by ordinal (position) as previously returned by #ord . |
void | seekExact(BytesRef term, TermState state) Expert: Seeks a specific position by TermState previously obtained from #termState() . |
BytesRef | term() Returns current term. |
TermState | termState() Expert: Returns the TermsEnums internal state to position the TermsEnum without re-seeking the term dictionary. |
long | totalTermFreq() Returns the total number of occurrences of this term across all documents (the sum of the freq() for each doc that has this term). |