Terms

abstract class Terms

Access to the terms in a specific field. See Fields.

Inheritors

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val docCount: Int
Link copied to clipboard
open val max: BytesRef?
Link copied to clipboard
open val min: BytesRef?
Link copied to clipboard
abstract val sumDocFreq: Long
Link copied to clipboard
abstract val sumTotalTermFreq: Long

Functions

Link copied to clipboard
open fun getStats(): Any

Expert: returns additional information about this Terms instance for debugging purposes.

Link copied to clipboard
abstract fun hasFreqs(): Boolean

Returns true if documents in this field store per-document term frequency ( ).

Link copied to clipboard
abstract fun hasOffsets(): Boolean

Returns true if documents in this field store offsets.

Link copied to clipboard
abstract fun hasPayloads(): Boolean

Returns true if documents in this field store payloads.

Link copied to clipboard
abstract fun hasPositions(): Boolean

Returns true if documents in this field store positions.

Link copied to clipboard
open fun intersect(compiled: CompiledAutomaton, startTerm: BytesRef?): TermsEnum

Returns a TermsEnum that iterates over all terms and documents that are accepted by the provided CompiledAutomaton. If the startTerm is provided then the returned enum will only return terms > startTerm, but you still must call next() first to get to the first term. Note that the provided startTerm must be accepted by the automaton.

Link copied to clipboard
abstract fun iterator(): TermsEnum

Returns an iterator that will step through all terms. This method will not return null.

Link copied to clipboard
abstract fun size(): Long

Returns the number of terms for this field, or -1 if this measure isn't stored by the codec. Note that, just like other term measures, this measure does not take deleted documents into account.