Constructor MailSearchPhraseReading
- Namespace
- MailFathom.Application.Emails.Search.Phrasing
- Assembly
- MailFathom.Application.dll
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.
public MailSearchPhraseReading(MailSearchPhraseFilters Filters, IReadOnlyList<string> Criteria, string? Unaccounted, bool WasRead)
Parameters
FiltersMailSearchPhraseFiltersThe constraints the sentence was read as, which may be None.
CriteriaIReadOnlyList<string>What is left to rank by, best first, and empty where the sentence was all constraint.
UnaccountedstringThe part of the sentence nothing was made of, or null where all of it was read.
WasReadboolWhether this came from a reading of the sentence rather than from the absence of one.
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.