Section navigation

Public classSealed CombinedFieldsQuery

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

Matches terms across several text fields using combined-field scoring semantics.

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

Public constructor CombinedFieldsQuery(IEnumerable<string>, IEnumerable<string>, int, IReadOnlyDictionary<string, float>?)

Initialises a new CombinedFieldsQuery.

Public property Field

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

Public property FieldWeights

Gets the optional per-field query weights.

Public property Fields

Gets the participating fields.

Public property MinimumShouldMatch

Gets the minimum number of terms that must match across the field set.

Public property Terms

Gets the distinct, sorted query 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.