Table of Contents

Public classSealed DisjunctionMaxQuery

Namespace
Rowles.LeanLucene.Search.Queries
Assembly
Rowles.LeanLucene.dll

Returns the maximum score from any sub-query for a matching document, plus an optional tie-breaking bonus from remaining sub-queries.

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

Constructors

Public constructor DisjunctionMaxQuery(float)

Initialises a new DisjunctionMaxQuery with the given tie-breaker multiplier.

Properties

Public propertyRead-only Disjuncts

Gets the list of sub-queries whose scores are combined.

Public propertyRead-only Field

Gets the primary field this query targets.

Public propertyRead-only TieBreakerMultiplier

Contribution of non-maximum clauses to the document score: score = max + tieBreakerMultiplier * sum(rest).

Methods

Public method Add(Query)

Adds a disjunct sub-query and returns this for chaining.

Public method Equals(object?)

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

Public method GetHashCode()

Serves as the default hash function.