Section navigation

Public classSealed TermRangeQuery

Namespace
Rowles.LeanCorpus.Search.Queries
Assembly
Rowles.LeanCorpus.dll

Matches documents whose field value falls within a lexicographic range. Bounds can be inclusive or exclusive; null means unbounded.

public sealed class TermRangeQuery : Query, IEquatable<Query>
Inheritance
TermRangeQuery
Implements
Inherited Members
Extension Methods

Public constructor TermRangeQuery(string, string?, string?, bool, bool)

Initialises a new TermRangeQuery for the given field and lexicographic bounds.

Public property Field

Gets the single field this query targets, or an empty value for fieldless and multi-field queries.

Public property IncludeLower

Gets a value indicating whether the lower bound is inclusive.

Public property IncludeUpper

Gets a value indicating whether the upper bound is inclusive.

Public property LowerTerm

Gets the optional inclusive or exclusive lower bound, or null for unbounded.

Public property UpperTerm

Gets the optional inclusive or exclusive upper bound, or null for unbounded.

Public method Equals(object?)

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

Public method GetHashCode()

Serves as the default hash function.