pub struct CompiledSearchPlan {
pub strict: CompiledSearch,
pub relaxed: Option<CompiledSearch>,
pub was_degraded_at_plan_time: bool,
}Expand description
A two-branch compiled search plan ready for the coordinator to execute.
Phase 6 factors the strict+relaxed retrieval pair into a small carrier so
that the adaptive crate::compile_search path and the narrow
fallback_search(strict, relaxed) helper share a single coordinator
routine. Both branches carry fully compiled CompiledSearch values —
including the same fused/residual filter chain and the same
attribution_requested flag — so merge/dedup stays branch-agnostic.
Fields§
§strict: CompiledSearchThe strict branch — always runs first.
relaxed: Option<CompiledSearch>The relaxed branch, or None when the caller did not request a
fallback shape. When None, the coordinator runs strict only and
never triggers the fallback policy.
was_degraded_at_plan_time: boolSet when the plan originated from crate::derive_relaxed and its
alternatives list was truncated past crate::RELAXED_BRANCH_CAP.
The fallback_search path always sets this to false because the
relaxed shape is caller-provided and not subject to the cap.
Trait Implementations§
Source§impl Clone for CompiledSearchPlan
impl Clone for CompiledSearchPlan
Source§fn clone(&self) -> CompiledSearchPlan
fn clone(&self) -> CompiledSearchPlan
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more