Class HybridSearchRanking
- Namespace
- MailFathom.Application.Emails.Search
- Assembly
- MailFathom.Application.dll
Composes one published ordering out of a lexical ranking and the two rankings meaning produces.
public static class HybridSearchRanking
- Inheritance
-
HybridSearchRanking
- Inherited Members
Remarks
The one step a surface calls, rather than a rule each of them remembers.
ADR 0030
requires exactly that: a guarantee that has to be remembered in two places is one that holds in one of them after the
next change to the other. Every surface that publishes a ranked result composes it here: search_emails and an
answering run's retrieval through MailboxSearchReader, and the client's search route through
MailSearchBrowser.
What it guarantees is stronger than "a picture never outranks words" and simpler to test: a picture never improves a message's place, and only ever adds a message that would not have been in the result at all. The written ranking is fused with the lexical one exactly as the single semantic ranking was, so nothing about fusion changes; the depicted ranking is then reduced to what the fused result does not carry and appended after it.
Both sections share one depth, and it is the depth the surface already had. A caller's limit applies to the concatenation, so the depicted section occupies what the written results leave of it and nothing more — giving the tail a depth of its own would publish a list past a bound that exists to limit how much of a mailbox one query walks out of the deployment.
Methods
- Compose(IReadOnlyList<RankedEmailCandidate>, SemanticEmailRankings, int)
Fuses the written rankings and appends what a description alone found, as one bounded ordering.