Method Compose
- Namespace
- MailFathom.Application.Emails.Search
- Assembly
- MailFathom.Application.dll
Compose(IReadOnlyList<RankedEmailCandidate>, SemanticEmailRankings, int)
Fuses the written rankings and appends what a description alone found, as one bounded ordering.
public static RankedSearchSequence Compose(IReadOnlyList<RankedEmailCandidate> lexicalCandidates, SemanticEmailRankings semanticRankings, int limit)
Parameters
lexicalCandidatesIReadOnlyList<RankedEmailCandidate>The lexical ranking, best first.
semanticRankingsSemanticEmailRankingsThe two orderings meaning produced, each nearest first.
limitintThe greatest number of results the concatenation may carry, at least one.
Returns
- RankedSearchSequence
The published ordering, and which of its members a description alone put there.
Remarks
Every score the result carries is finite, positive, and descending, which is what a keyset cursor into this sequence requires and what a boundary composed rather than ranked would break. A fused score is a small positive sum of reciprocals, so the depicted section is scaled beneath the least of them rather than subtracted from it: subtracting would yield a negative boundary and refuse every page that ended in the tail.
Exceptions
- ArgumentNullException
Thrown when
lexicalCandidatesorsemanticRankingsis null.- ArgumentOutOfRangeException
Thrown when
limitis below one.