Section navigation

Public classSealed RegexpQuery

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

Matches all documents that contain a term matching the provided regular expression. The regex is applied to the bare term text (not the qualified field\0term form).

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

Public constructor RegexpQuery(string, string, RegexOptions)

Initialises a new RegexpQuery for the given field and pattern.

Public property Field

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

Public property Pattern

Gets the regular expression pattern applied to bare term text.

Public method Equals(object?)

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

Public method GetHashCode()

Serves as the default hash function.