Table of Contents

Class SearchEmailsResult

Namespace
MailFathom.Application.Emails.SearchEmails
Assembly
MailFathom.Application.dll

One ranked window of search results, together with how current the mail behind them is.

public sealed record SearchEmailsResult : IEquatable<SearchEmailsResult>
Inheritance
SearchEmailsResult
Implements
Inherited Members

Remarks

The window is the whole result: nothing continues it, and a caller that needs different mail narrows the structured filters or writes a different query rather than paging. Relevance order is recomputed per query and moves as mail is indexed, so a boundary into it would name a position that had stopped meaning what it meant when it was handed out.

Freshness travels with every result for the reason it travels with every page: a search is answered from the local copy whether or not a mail server is reachable, and a folder whose synchronization has been failing for a week otherwise looks exactly like a folder holding nothing that matched.

Constructors

SearchEmailsResult(IReadOnlyList<EmailSearchMatch>, IReadOnlyList<MailboxFolderFreshness>)

One ranked window of search results, together with how current the mail behind them is.

Properties

FolderFreshness

How current the local copy of each folder in the request's scope is.

Matches

The matches, most relevant first, holding no more than the effective result limit.