SpanNearQuery

class SpanNearQuery(clausesIn: Array<SpanQuery>, slop: Int, inOrder: Boolean) : SpanQuery

Matches spans which are near one another. One can specify slop as well as whether matches are required to be in-order.

Constructors

Link copied to clipboard
constructor(clausesIn: Array<SpanQuery>, slop: Int, inOrder: Boolean)

Types

Link copied to clipboard
class Builder(field: String, ordered: Boolean)

A builder for SpanNearQueries

Link copied to clipboard
object Companion
Link copied to clipboard
class GapSpans(width: Int) : Spans
Link copied to clipboard
inner class SpanNearWeight(subWeights: List<SpanWeight>, searcher: IndexSearcher, terms: Map<Term, TermStates>?, boost: Float) : SpanWeight

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

Return the clauses whose spans are matched.

Link copied to clipboard
open override fun getField(): String?

Returns the name of the field matched by this query.

Link copied to clipboard
fun getSlop(): Int

Return the maximum number of intervening unmatched positions permitted.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard

Return true if matches are required to be in-order.

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