Section navigation

Public classSealed PrefixQuery

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

Matches all terms starting with a given prefix.

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

Public constructor PrefixQuery(string, string)

Initialises a new PrefixQuery for the given field and prefix.

Public property Field

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

Public property Prefix

Gets the prefix that all matched terms must start with.

Public method Equals(object?)

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

Public method GetHashCode()

Serves as the default hash function.