Section navigation

Public classSealed SynonymQuery

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

Matches any of several terms as one scoring unit.

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

Public constructor SynonymQuery(string, IEnumerable<string>)

Initialises a synonym query for one field.

Public constructor SynonymQuery(string, params string[])

Initialises a synonym query for one field.

Public property Field

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

Public property Terms

Gets the distinct, sorted synonym terms.

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 Visit(QueryVisitor)

Visits this query and its children.