Struct EmailSearchResultLimit
- Namespace
- MailFathom.Application.Emails.Search
- Assembly
- MailFathom.Application.dll
How many ranked emails one search hands back at once.
public readonly record struct EmailSearchResultLimit : IEquatable<EmailSearchResultLimit>
- Implements
- Inherited Members
Remarks
One bound over two readings, because what it bounds is the same thing in both: how much ranked mail content one request draws out of a mailbox. A tool search closes a window with it and continues nowhere — a caller that needs different mail narrows the structured filters or writes a different query. A client search cuts a page with it and continues, within a ranked list whose depth is fixed; RankedSearchCursor is where a boundary into a relevance order is defined and what it costs is stated, since that order is recomputed per query while a timeline order is not.
The maximum is lower than a timeline page's, because a ranked result costs more than a listed one: PostgreSQL builds a highlighted extract per row on top of matching and ranking it. That is what makes it a control rather than a tuning knob.
Being a struct, default is reachable and carries a value of zero, which names no window. IsSpecified reports that. Every limit a search uses arrives through Create(int) or FromRequested(int?), so the default cannot reach a query from a request.
Fields
- DefaultValue
The number of results a request that names none receives.
- MaximumValue
The greatest number of ranked results one search returns.
Properties
- Default
Gets the limit a request that names none receives.
- IsSpecified
Gets whether this value names a limit rather than the unusable struct default.
- Value
Gets how many ranked results the search returns.
Methods
- Create(int)
Creates a limit from what a request asked for.
- FromRequested(int?)
Creates a limit from a request that may not have named one.
- ToString()
Returns the fully qualified type name of this instance.