
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
DisjunctionMaxQuery(float)
Initialises a new DisjunctionMaxQuery with the given tie-breaker multiplier.
Properties
Disjuncts
Gets the list of sub-queries whose scores are combined.
Field
Gets the primary field this query targets.
TieBreakerMultiplier
Contribution of non-maximum clauses to the document score:
score = max + tieBreakerMultiplier * sum(rest).
Methods
Add(Query)
Adds a disjunct sub-query and returns
thisfor chaining.
Equals(object?)
Determines whether the specified object is equal to the current object.
GetHashCode()
Serves as the default hash function.