pub struct TermContribution {
pub term: String,
pub idf: f32,
pub weighted_tf: f32,
pub contribution: f32,
pub matched_fields: Vec<String>,
}Expand description
Per-term BM25 score contribution returned by explain_query.
Fields§
§term: StringCanonicalized / stemmed query term.
idf: f32Inverse document frequency of this term across the catalog.
weighted_tf: f32Weighted term frequency within the candidate tool.
contribution: f32BM25 score contribution from this term.
matched_fields: Vec<String>Metadata fields where this term matched (name, title, description, parameters).
Trait Implementations§
Source§impl Clone for TermContribution
impl Clone for TermContribution
Source§impl Debug for TermContribution
impl Debug for TermContribution
Source§impl<'de> Deserialize<'de> for TermContribution
impl<'de> Deserialize<'de> for TermContribution
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 TermContribution
impl PartialEq for TermContribution
Source§impl Serialize for TermContribution
impl Serialize for TermContribution
impl StructuralPartialEq for TermContribution
Auto Trait Implementations§
impl Forget for TermContribution
impl Freeze for TermContribution
impl Move for TermContribution
impl RefUnwindSafe for TermContribution
impl Send for TermContributionwhere
RawVecInner: Send,
impl Sync for TermContributionwhere
RawVecInner: Sync,
impl Unpin for TermContribution
impl UnsafeUnpin for TermContributionwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for TermContributionwhere
RawVecInner: UnwindSafe,
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