Java org.apache.lucene.index TermsEnum fields, constructors, methods, implement or subclass

Example usage for Java org.apache.lucene.index TermsEnum fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.lucene.index TermsEnum.

The text is from its open source code.

Subclass

org.apache.lucene.index.TermsEnum has subclasses.
Click this link to see all its subclasses.

Field

TermsEnumEMPTY
An empty TermsEnum for quickly returning an empty instance e.g.

Constructor

TermsEnum()
Sole constructor.

Method

AttributeSourceattributes()
Returns the related attributes.
intdocFreq()
Returns the number of documents containing the current term.
BytesRefnext()
Increments the iteration to the next BytesRef in the iterator.
longord()
Returns ordinal position for current term.
PostingsEnumpostings(PostingsEnum reuse)
Get PostingsEnum for the current term.
PostingsEnumpostings(PostingsEnum reuse, int flags)
Get PostingsEnum for the current term, with control over whether freqs, positions, offsets or payloads are required.
SeekStatusseekCeil(BytesRef text)
Seeks to the specified term, if it exists, or to the next (ceiling) term.
booleanseekExact(BytesRef text)
Attempts to seek to the exact term, returning true if the term is found.
voidseekExact(long ord)
Seeks to the specified term by ordinal (position) as previously returned by #ord .
voidseekExact(BytesRef term, TermState state)
Expert: Seeks a specific position by TermState previously obtained from #termState() .
BytesRefterm()
Returns current term.
TermStatetermState()
Expert: Returns the TermsEnums internal state to position the TermsEnum without re-seeking the term dictionary.
longtotalTermFreq()
Returns the total number of occurrences of this term across all documents (the sum of the freq() for each doc that has this term).