pub struct SearchExplanation {
pub matched_fields: Vec<String>,
pub exact_score: f64,
pub prefix_score: f64,
pub suffix_score: f64,
pub fts_score: f64,
pub type_score: f64,
pub scope_score: f64,
pub centrality_score: f64,
pub community_score: f64,
pub evidence_score: f64,
pub freshness_penalty: f64,
}Expand description
Score components and match facts for one search hit.
Fields§
§matched_fields: Vec<String>Fields that matched the normalized query.
exact_score: f64Score contributed by exact stable-key or label matching.
prefix_score: f64Score contributed by normalized prefix matching.
suffix_score: f64Score contributed by normalized suffix matching.
fts_score: f64Score contributed by the supplied full-text score.
type_score: f64Score contributed by matching the node kind.
scope_score: f64Score contributed by explicit service or community scope.
centrality_score: f64Score contributed by supplied centrality.
community_score: f64Score contributed by optional community membership.
evidence_score: f64Score contributed by bounded evidence quality.
freshness_penalty: f64Score subtracted for stale, partial, unknown, or unavailable inputs.
Trait Implementations§
Source§impl Clone for SearchExplanation
impl Clone for SearchExplanation
Source§fn clone(&self) -> SearchExplanation
fn clone(&self) -> SearchExplanation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SearchExplanation
impl Debug for SearchExplanation
Source§impl<'de> Deserialize<'de> for SearchExplanation
impl<'de> Deserialize<'de> for SearchExplanation
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 JsonSchema for SearchExplanation
impl JsonSchema for SearchExplanation
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for SearchExplanation
impl PartialEq for SearchExplanation
Source§impl Serialize for SearchExplanation
impl Serialize for SearchExplanation
impl StructuralPartialEq for SearchExplanation
Auto Trait Implementations§
impl Freeze for SearchExplanation
impl RefUnwindSafe for SearchExplanation
impl Send for SearchExplanation
impl Sync for SearchExplanation
impl Unpin for SearchExplanation
impl UnsafeUnpin for SearchExplanation
impl UnwindSafe for SearchExplanation
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