MultiTerms

class MultiTerms(val subTerms: Array<Terms>, val subSlices: Array<ReaderSlice>) : Terms

Exposes flex API, merged from flex API of sub-segments.

Constructors

Link copied to clipboard
constructor(subTerms: Array<Terms>, subSlices: Array<ReaderSlice>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val docCount: Int
Link copied to clipboard
open override val max: BytesRef?
Link copied to clipboard
open override val min: BytesRef?
Link copied to clipboard

Expert: returns pointers to the sub-readers corresponding to the Terms being merged.

Link copied to clipboard

Expert: returns the Terms being merged.

Link copied to clipboard
open override val sumDocFreq: Long
Link copied to clipboard
open override 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
open override fun hasFreqs(): Boolean

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

Link copied to clipboard
open override fun hasOffsets(): Boolean

Returns true if documents in this field store offsets.

Link copied to clipboard
open override fun hasPayloads(): Boolean

Returns true if documents in this field store payloads.

Link copied to clipboard
open override fun hasPositions(): Boolean

Returns true if documents in this field store positions.

Link copied to clipboard
open override 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
open override fun iterator(): TermsEnum

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

Link copied to clipboard
open override 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.