pub struct TextSearchRequest {
pub mode: TextCandidateMode,
pub query: String,
pub language: Option<String>,
pub limit: u64,
}Expand description
One candidate drain request.
Fields§
§mode: TextCandidateModeWhich query to build.
query: StringFull-text query string, or the literal prefix / suffix pattern.
language: Option<String>Optional language restriction (lang:fr, or the _none sentinel).
limit: u64Per-drain guard on emitted distinct terms; 0 means unlimited.
This is an execution guard, not a cursor: exceeding it is an error, not a silent truncation, because dropped candidates would drop rows.
NO v1 caller arms a guard: every minted request carries 0, so a
drain is unbounded — a broad FTS query materializes its whole
distinct candidate set in one partition-side allocation. Arming a
real limit requires a policy for the error reaching the client
(refine-the-query is not always actionable), so until then the
unbounded drain is the documented contract, not an oversight.
Implementations§
Trait Implementations§
Source§impl Clone for TextSearchRequest
impl Clone for TextSearchRequest
Source§fn clone(&self) -> TextSearchRequest
fn clone(&self) -> TextSearchRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more