
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
WildcardQuery(string, string)
Initialises a new WildcardQuery for the given field and pattern.
Field
Gets the single field this query targets, or an empty value for fieldless and multi-field queries.
Pattern
Gets the wildcard pattern where * matches any characters and ? matches a single character.
Equals(object?)
Determines whether the specified object is equal to the current object.
GetHashCode()
Serves as the default hash function.
Matches(ReadOnlySpan<char>, ReadOnlySpan<char>)
Tests whether a term matches the wildcard pattern.