SpanNotQuery

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.