Section navigation

Public classSealed WildcardQuery

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

Matches terms using wildcard patterns (* = any chars, ? = single char).

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

Public constructor WildcardQuery(string, string)

Initialises a new WildcardQuery 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 wildcard pattern where * matches any characters and ? matches a single character.

Public method Equals(object?)

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

Public method GetHashCode()

Serves as the default hash function.

Public method Matches(ReadOnlySpan<char>, ReadOnlySpan<char>)

Tests whether a term matches the wildcard pattern.