pub struct SearchContext {Show 14 fields
pub evaluation_time: DateTime<Utc>,
pub receipt_mode: ReceiptMode,
pub exactness_profile: ExactnessProfile,
pub request_id: Option<String>,
pub trace_id: Option<String>,
pub attempt_family_id: Option<String>,
pub attempt_id: Option<String>,
pub replay_of: Option<String>,
pub query_text_digest: Option<String>,
pub query_input_digest: Option<String>,
pub filter_digest: Option<String>,
pub redaction_state: Option<String>,
pub budget_id: Option<String>,
pub deadline_at: Option<DateTime<Utc>>,
}Expand description
Explicit search execution context for deterministic replay and receipt generation.
Fields§
§evaluation_time: DateTime<Utc>Timestamp used for time-sensitive scoring such as recency.
receipt_mode: ReceiptModeReceipt metadata mode.
exactness_profile: ExactnessProfileExactness policy for vector candidate generation.
request_id: Option<String>Optional caller-provided request/receipt correlation ID.
trace_id: Option<String>Optional distributed trace identifier supplied by the caller.
attempt_family_id: Option<String>Optional family ID tying retries/attempts for the same logical request.
attempt_id: Option<String>Optional retry/attempt identifier supplied by the caller.
replay_of: Option<String>Receipt ID this search is replaying, when applicable.
query_text_digest: Option<String>Digest of raw query text when the caller provides one.
query_input_digest: Option<String>Digest of raw or structured query input when supplied by the caller.
filter_digest: Option<String>Digest of structured filters when the caller provides one.
redaction_state: Option<String>Redaction state label for explain/replay surfaces.
budget_id: Option<String>Optional budget identity associated with the search.
deadline_at: Option<DateTime<Utc>>Optional caller deadline associated with the search.
Implementations§
Source§impl SearchContext
impl SearchContext
Sourcepub fn default_now() -> Self
pub fn default_now() -> Self
Build a context using the current wall clock at the API boundary.
Sourcepub fn at(evaluation_time: DateTime<Utc>) -> Self
pub fn at(evaluation_time: DateTime<Utc>) -> Self
Build a replay context with an explicit evaluation timestamp.
Sourcepub fn receipts_enabled(&self) -> bool
pub fn receipts_enabled(&self) -> bool
Whether a receipt should be produced for this context.
Trait Implementations§
Source§impl Clone for SearchContext
impl Clone for SearchContext
Source§fn clone(&self) -> SearchContext
fn clone(&self) -> SearchContext
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more