pub struct Hit {
pub id: String,
pub score: i64,
pub lexical_score: i64,
pub confidence: Confidence,
pub why: Vec<String>,
pub relation_matches: Vec<RelationMatch>,
pub anchor: f64,
pub relation_anchor: bool,
}Fields§
§id: String§score: i64Route score: lexical relevance adjusted by reliability signals such as identity anchoring and canonical-dominance boosting — drives ranking/route.
lexical_score: i64Raw lexical relevance, BEFORE route reliability penalties or dominance boosts. Lets context expansion keep useful body evidence even when route ranking prefers anchored front doors.
confidence: Confidence§why: Vec<String>§relation_matches: Vec<RelationMatch>Structured relation reasons that influenced this hit’s ranking.
anchor: f64Fraction of the query’s IDF weight that lands in the node’s curated identity (id/title/ aliases/summary) vs only its body. Calibration input, not serialized.
relation_anchor: boolTrue when the route was anchored by a directed relation phrase + endpoint match, not just local node text. Focus uses this to preserve source-side relation answers.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Hit
impl RefUnwindSafe for Hit
impl Send for Hit
impl Sync for Hit
impl Unpin for Hit
impl UnsafeUnpin for Hit
impl UnwindSafe for Hit
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more