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

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

Introduction

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

The text is from its open source code.

Subclass

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

Constructor

Terms()
Sole constructor.

Method

intgetDocCount()
Returns the number of documents that have at least one term for this field.
BytesRefgetMax()
Returns the largest term (in lexicographic order) in the field.
BytesRefgetMin()
Returns the smallest term (in lexicographic order) in the field.
ObjectgetStats()
Expert: returns additional information about this Terms instance for debugging purposes.
longgetSumDocFreq()
Returns the sum of TermsEnum#docFreq() for all terms in this field.
longgetSumTotalTermFreq()
Returns the sum of TermsEnum#totalTermFreq for all terms in this field.
booleanhasFreqs()
Returns true if documents in this field store per-document term frequency ( PostingsEnum#freq ).
booleanhasOffsets()
Returns true if documents in this field store offsets.
booleanhasPayloads()
Returns true if documents in this field store payloads.
booleanhasPositions()
Returns true if documents in this field store positions.
TermsEnumintersect(CompiledAutomaton compiled, final BytesRef startTerm)
Returns a TermsEnum that iterates over all terms and documents that are accepted by the provided CompiledAutomaton .
TermsEnumiterator()
Returns an iterator that will step through all terms.
longsize()
Returns the number of terms for this field, or -1 if this measure isn't stored by the codec.