SpanTermQuery

class SpanTermQuery(term: Term, termStates: TermStates? = null) : SpanQuery

Matches spans containing a term. This should not be used for terms that are indexed at position Integer.MAX_VALUE.

Constructors

Link copied to clipboard
constructor(term: Term, termStates: TermStates? = null)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
inner class SpanTermWeight(val termStates: TermStates, searcher: IndexSearcher, terms: Map<Term, TermStates>?, boost: Float) : SpanWeight

Creates SpanTermQuery scorer instances

Functions

Link copied to clipboard
open override fun createWeight(searcher: IndexSearcher, scoreMode: ScoreMode, boost: Float): SpanWeight
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun getField(): String

Returns the name of the field matched by this query.

Link copied to clipboard
fun getTerm(): Term

Return the term whose spans are matched.

Link copied to clipboard

Returns the TermStates passed to the constructor, or null if it was not passed.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open fun rewrite(indexSearcher: IndexSearcher): Query
Link copied to clipboard
open override fun toString(field: String?): String
open override fun toString(): String
Link copied to clipboard
open override fun visit(visitor: QueryVisitor)