pub struct SearchExplain {Show 14 fields
pub bm25: Option<f64>,
pub branches: Vec<String>,
pub name_tier: String,
pub name_strength: u32,
pub terms: Vec<(String, String, f64)>,
pub term_score: f64,
pub name_bonus: f64,
pub kind_prior: f64,
pub path_role: f64,
pub documentation: f64,
pub test_intent: f64,
pub word_weights: Vec<(String, f64)>,
pub candidates: usize,
pub rerank_us: u128,
}Expand description
Rerank breakdown for one search hit: which recall branches admitted the row, the name
tier with its match strength, every score part, the query terms with the field that
credited each and each term’s rarity weight, and the timer over the whole candidate set.
score is term_score + name_bonus + kind_prior + path_role + documentation + test_intent.
Fields§
§bm25: Option<f64>§branches: Vec<String>§name_tier: String§name_strength: u32§terms: Vec<(String, String, f64)>§term_score: f64§name_bonus: f64§kind_prior: f64§path_role: f64§documentation: f64§test_intent: f64§word_weights: Vec<(String, f64)>§candidates: usize§rerank_us: u128Trait Implementations§
Source§impl Clone for SearchExplain
impl Clone for SearchExplain
Source§impl Debug for SearchExplain
impl Debug for SearchExplain
Source§impl<'de> Deserialize<'de> for SearchExplain
impl<'de> Deserialize<'de> for SearchExplain
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
Source§impl PartialEq for SearchExplain
impl PartialEq for SearchExplain
Source§impl Serialize for SearchExplain
impl Serialize for SearchExplain
impl StructuralPartialEq for SearchExplain
Auto Trait Implementations§
impl Freeze for SearchExplain
impl RefUnwindSafe for SearchExplain
impl Send for SearchExplain
impl Sync for SearchExplain
impl Unpin for SearchExplain
impl UnsafeUnpin for SearchExplain
impl UnwindSafe for SearchExplain
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more