SpanWeight

abstract class SpanWeight(query: SpanQuery, searcher: IndexSearcher, termStates: Map<Term, TermStates>?, boost: Float) : Weight

Expert-only. Public for use by other weight implementations

Inheritors

Constructors

Link copied to clipboard
constructor(query: SpanQuery, searcher: IndexSearcher, termStates: Map<Term, TermStates>?, boost: Float)

Types

Link copied to clipboard

Enumeration defining what postings information should be retrieved from the index for a given Spans

Properties

Link copied to clipboard
open val query: Query

Functions

Link copied to clipboard
Link copied to clipboard
open fun count(context: LeafReaderContext): Int
Link copied to clipboard
open override fun explain(context: LeafReaderContext, doc: Int): Explanation
Link copied to clipboard
abstract fun extractTermStates(contexts: MutableMap<Term, TermStates>)

Collect all TermStates used by this Weight

Link copied to clipboard

Return the SimScorer

Link copied to clipboard
abstract fun getSpans(ctx: LeafReaderContext, requiredPostings: SpanWeight.Postings): Spans?

Expert: Return a Spans object iterating over matches from this Weight

Link copied to clipboard
Link copied to clipboard
open override fun matches(context: LeafReaderContext, doc: Int): Matches?
Link copied to clipboard
Link copied to clipboard
open override fun scorerSupplier(context: LeafReaderContext): ScorerSupplier?