pub struct RankedHit {
pub node: Node,
pub score: f32,
pub reasons: Vec<String>,
}Expand description
A single ranked search hit.
reasons is a debug-oriented list of score components (e.g. fts:…, tag:raft)
intended for CLI --scores and UI tooltips — not a stable public schema.
Fields§
§node: NodeMatching node.
score: f32Higher is better. Combines inverted BM25 with additive boosts.
reasons: Vec<String>Why this hit was selected (for debugging / UI).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RankedHit
impl<'de> Deserialize<'de> for RankedHit
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RankedHit
impl RefUnwindSafe for RankedHit
impl Send for RankedHit
impl Sync for RankedHit
impl Unpin for RankedHit
impl UnsafeUnpin for RankedHit
impl UnwindSafe for RankedHit
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