pub struct Explanation {Show 19 fields
pub retrieved: bool,
pub rank: Option<usize>,
pub lexical_score: Option<f64>,
pub semantic_score: Option<f64>,
pub retrieval_score: Option<f64>,
pub lexical_weight: f64,
pub semantic_weight: f64,
pub fusion: String,
pub matched_terms: Vec<String>,
pub recency_factor: f64,
pub historical_factor: f64,
pub final_score: Option<f64>,
pub status: FactStatus,
pub as_of: Millis,
pub known_at: Option<Millis>,
pub valid_from: Option<Millis>,
pub valid_to: Option<Millis>,
pub within_validity: bool,
pub chain: Vec<ChainLink>,
}Expand description
Why a fact matched and how it was adjusted.
Fields§
§retrieved: boolFalse when the fact was not among the ranked candidates for the query (explain still reports its terms, validity and chain).
rank: Option<usize>1-based position among the ranked candidates, after the recency policy.
lexical_score: Option<f64>§semantic_score: Option<f64>§retrieval_score: Option<f64>The fused document search score before the recency policy.
lexical_weight: f64§semantic_weight: f64§fusion: String§matched_terms: Vec<String>Query words that match the fact’s text (after stemming).
recency_factor: f64The recency policy’s multiplier; 1 when none is configured.
historical_factor: f64The multiplier for a non-current fact (historicalWeight); 1 for a current one.
final_score: Option<f64>§status: FactStatus§as_of: Millis§known_at: Option<Millis>§valid_from: Option<Millis>§valid_to: Option<Millis>§within_validity: bool§chain: Vec<ChainLink>Trait Implementations§
Source§impl Clone for Explanation
impl Clone for Explanation
Source§impl Debug for Explanation
impl Debug for Explanation
Source§impl<'de> Deserialize<'de> for Explanation
impl<'de> Deserialize<'de> for Explanation
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 Explanation
impl PartialEq for Explanation
Source§impl Serialize for Explanation
impl Serialize for Explanation
impl StructuralPartialEq for Explanation
Auto Trait Implementations§
impl Freeze for Explanation
impl RefUnwindSafe for Explanation
impl Send for Explanation
impl Sync for Explanation
impl Unpin for Explanation
impl UnsafeUnpin for Explanation
impl UnwindSafe for Explanation
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.