Table of Contents

Property BestFirst

Namespace
MailFathom.Application.Emails.Search
Assembly
MailFathom.Application.dll

BestFirst

Gets the order a ranked result is published in: best score first, ties settled by the timeline.

public static IComparer<RankedEmailCandidate> BestFirst { get; }

Property Value

IComparer<RankedEmailCandidate>

Remarks

The order lives on the candidate rather than on any one producer because two of them need the same answer. A fusion sorts the scores it computed into it, and a paged search continues a walk through it — and a boundary compared under one order while the sequence was built under another would repeat a result at one page edge and skip one at the next.

Equal scores are not rare and are not a detail. Two documents at symmetric places in a fusion score identically by construction, and a full-text rank ties whenever several messages carry an uncommon word equally often; the timeline order settles both, which is what makes the sequence total and therefore pageable.

It orders candidates of one ranking. Nothing here compares a score across two of them, which is the calibration ReciprocalRankFusion exists to avoid.