SpanNotQuery

Removes matches which overlap with another SpanQuery or which are within x tokens before or y tokens after another SpanQuery.

Constructors

Link copied to clipboard
constructor(include: SpanQuery, exclude: SpanQuery)

Construct a SpanNotQuery matching spans from include which have no overlap with spans from exclude.

constructor(include: SpanQuery, exclude: SpanQuery, dist: Int)

Construct a SpanNotQuery matching spans from include which have no overlap with spans from exclude within dist tokens of include. Inversely, a negative dist value may be used to specify a certain amount of allowable overlap.

constructor(include: SpanQuery, exclude: SpanQuery, pre: Int, post: Int)

Construct a SpanNotQuery matching spans from include which have no overlap with spans from exclude within pre tokens before or post tokens of include. Inversely, negative values for pre and/or post allow a certain amount of overlap to occur.

Types

Link copied to clipboard
inner class SpanNotWeight(searcher: IndexSearcher, terms: Map<Term, TermStates>?, val includeWeight: SpanWeight, val excludeWeight: SpanWeight, boost: Float) : SpanWeight

Creates SpanNotQuery 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

Returns true iff o is equal to this.

Link copied to clipboard

Return the SpanQuery whose matches must not overlap those returned.

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

Returns the name of the field matched by this query.

Link copied to clipboard

Return the SpanQuery whose matches are filtered.

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