Table of Contents

Constructor EmailSearchMatch

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

EmailSearchMatch(EmailSummary, float, IReadOnlyList<string>)

One email a lexical search matched, with why it ranked where it did and what matched.

public EmailSearchMatch(EmailSummary Summary, float RelevanceRank, IReadOnlyList<string> Snippets)

Parameters

Summary EmailSummary

The email as a listing shows it.

RelevanceRank float

What the full-text ranking scored this email against this query, higher being more relevant.

Snippets IReadOnlyList<string>

The highlighted extracts of the body around what matched, in the order the body carries them.

Remarks

The summary is the same bounded projection a listing returns, so a caller can act on a result — read the message, filter its folder, recognize its sender — without a second query. What search adds is the rank and the snippets, and neither is anything the mailbox holds: both are computed per query and mean nothing outside the one that produced them.

The snippets are mail content and inherit the classification of the message they were cut from. They are bounded in number and length by EmailSearchSnippetBounds, and there may be none of them: a message whose body yielded no text — encrypted mail, or mail whose content lives entirely in an attachment — matched on its subject or its participants, which the summary already publishes whole.