Interface IMailSearchPhraseReader
- Namespace
- MailFathom.Application.Emails.Search.Phrasing
- Assembly
- MailFathom.Application.dll
Reads a typed sentence into the constraints it states and the words it leaves to rank by.
public interface IMailSearchPhraseReader
Remarks
The port a search screen reaches the model through, and the whole of what a provider decides about a search. It answers with a reading rather than with results, so nothing provider-shaped travels beyond this boundary and the search that follows is the same search a person could have built by hand out of the same filters.
It is registered only where the deployment declared a chat endpoint and left this on, so a caller resolves it optionally and a deployment without one offers the plain word search rather than a field that fails. That is a registration rather than a branch inside a call: there is no path by which a sentence leaves an instance whose operator did not ask for this.
Methods
- ReadAsync(MailSearchPhrase, CancellationToken)
Reads one sentence, answering with what a search made of it.