Expand description
Query planning and selectivity decisions. Typed filter planning, exact execution branches, and truthful plan reports.
Structs§
- Filtered
Search Outcome - Exact filtered candidates plus truthful per-segment planning reports.
- Lexical
Search Outcome - Filtered lexical result and the branch that produced it.
- Segment
Plan - Truthful per-segment plan report returned with filtered results.
Enums§
- Explicit
Scan Tier - The only explicit caller tiers that deliberately select scan execution.
- Filter
Mode - Where the exact filter is enforced relative to candidate scoring.
- Filtered
Search Error - Typed failure from filtered planning or exact execution.
- Lexical
Branch - Exact lexical filter execution branch.
- Lexical
Filter Error - Typed lexical filter planning or scoring failure.
- Plan
Error - A typed planning-time predicate rejection.
- Plan
Fallback - A named fallback recorded by the planner.
- Plan
Node - Closed recursive plan IR. New execution families require a new enum variant.
- Scan
Reason - Why one segment was served without graph traversal.
- Scan
Reason Counter - Stable slots in
crate::lifecycle::Stats::scans_by_reason. - Segment
Branch - One exact vector-filter execution branch.
- Segment
Tier - The physical tier represented by one segment plan.
Constants§
- ALLOW_
LIST_ ROWS_ THRESHOLD - Maximum allow-list cardinality that drives row gathering.
- LEXICAL_
ALLOW_ LIST_ DIVISOR - Corpus divisor below which the allow-list drives lexical iteration.
- SCAN_
REASON_ COUNTER_ COUNT - Number of stable scan-reason counter slots.
Functions§
- choose_
scan_ branch - Chooses between the two exact scan branches from exact cardinality.
- search_
lexical_ filtered - Plans and executes one exact lexical query over segment-local allow-lists.
- segment_
may_ match - Returns
falseonly when timestamp statistics prove no row can match. - validate_
predicate - Validates every predicate node against the collection schema before execution.