Example usage for Java org.apache.lucene.index Terms fields, constructors, methods, implement or subclass
The text is from its open source code.
Terms() Sole constructor. |
int | getDocCount() Returns the number of documents that have at least one term for this field. |
BytesRef | getMax() Returns the largest term (in lexicographic order) in the field. |
BytesRef | getMin() Returns the smallest term (in lexicographic order) in the field. |
Object | getStats() Expert: returns additional information about this Terms instance for debugging purposes. |
long | getSumDocFreq() Returns the sum of TermsEnum#docFreq() for all terms in this field. |
long | getSumTotalTermFreq() Returns the sum of TermsEnum#totalTermFreq for all terms in this field. |
boolean | hasFreqs() Returns true if documents in this field store per-document term frequency ( PostingsEnum#freq ). |
boolean | hasOffsets() Returns true if documents in this field store offsets. |
boolean | hasPayloads() Returns true if documents in this field store payloads. |
boolean | hasPositions() Returns true if documents in this field store positions. |
TermsEnum | intersect(CompiledAutomaton compiled, final BytesRef startTerm) Returns a TermsEnum that iterates over all terms and documents that are accepted by the provided CompiledAutomaton . |
TermsEnum | iterator() Returns an iterator that will step through all terms. |
long | size() Returns the number of terms for this field, or -1 if this measure isn't stored by the codec. |