pub struct SearchHit {
pub id: u64,
pub kind: String,
pub body: String,
pub score: f64,
pub branch: SoftFallbackBranch,
}Expand description
A single structured search hit (G1 / AC-057a-clean).
Both retrieval branches emit this shape. id is the canonical row’s
write_cursor — the interim identity carrier per
dev/adr/ADR-0.8.0-canonical-identity-substrate.md; it swaps to
logical_id at the G0 keystone (Slice 15) with no carrier reshape.
score is the G9 RRF-fused relevance (Σ 1/(RRF_K + rank) over the
branches that surfaced this body; higher = more relevant), optionally
recency-reweighted when the dedicated recency flag is on. Raw vec_distance_l2
and bm25() are fused on rank, never compared raw (they are not
comparable). branch tags which retrieval branch produced the representative
hit (vector-first when a body is surfaced by both).
Derives Clone, Debug, PartialEq but not Eq — score: f64 forbids
total equality.
Fields§
§id: u64§kind: String§body: String§score: f64§branch: SoftFallbackBranch