Table of Contents

Class MailSearchPhraseReading

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

What one sentence was read as: the constraints, what is left to rank by, and the part nothing was made of.

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

Remarks

The three are separate and are never folded into one another, because they are three different promises to whoever typed the sentence. A constraint decides what may come back and is a thing they can take off. A criterion decides only the order and is a thing they can reword. The unaccounted part is neither, and saying so is the difference between a person correcting an interpretation and a person doubting their own mailbox — a reading that quietly turned about the indexing problem into a filter would exclude the mail it was supposed to find.

WasRead is what says a reading happened at all. A provider that failed, timed out, or answered with something unreadable produces Nothing, which is the search a deployment with no model runs: the words somebody typed, over the scope they were looking at. That is deliberate — a sentence is not unsearchable because the derivation was unavailable for a moment.

Constructors

MailSearchPhraseReading(MailSearchPhraseFilters, IReadOnlyList<string>, string?, bool)

What one sentence was read as: the constraints, what is left to rank by, and the part nothing was made of.

Fields

MaximumCriteria

The greatest number of criteria one sentence is read into.

MaximumCriterionLength

The greatest number of characters one criterion may carry.

MaximumUnaccountedLength

The greatest number of characters the unaccounted part may carry.

Properties

Criteria

What is left to rank by, best first, and empty where the sentence was all constraint.

Filters

The constraints the sentence was read as, which may be None.

Nothing

The reading a sentence gets where none was made, which leaves the plain word search exactly as it was.

Unaccounted

The part of the sentence nothing was made of, or null where all of it was read.

WasRead

Whether this came from a reading of the sentence rather than from the absence of one.