Table of Contents

Public classSealed SpanNearQuery

Namespace
Rowles.LeanLucene.Search.Queries
Assembly
Rowles.LeanLucene.dll

Matches documents where the spans from all clauses appear within Slop positions of each other. When InOrder is true, the spans must appear in the given order.

public sealed class SpanNearQuery : SpanQuery, IEquatable<Query>
Inheritance
SpanNearQuery
Inherited Members
Extension Methods

Public constructor SpanNearQuery(SpanQuery[], int, bool)

Initialises a new SpanNearQuery with the given clauses, slop, and ordering constraint.

Public property Clauses

Gets the ordered list of span sub-queries that must appear within the slop window.

Public property Field

The field these spans are evaluated against. All sub-queries of a span query must agree on this field.

Public property InOrder

Gets a value indicating whether spans must appear in the order given by Clauses.

Public property Slop

Gets the maximum positional distance allowed between span boundaries.

Public method Equals(object?)

Determines whether the specified object is equal to the current object.

Public method GetHashCode()

Serves as the default hash function.