pub struct FtsWeights {
pub title: f64,
pub summary: f64,
pub body: f64,
pub code_blocks: f64,
pub front_matter: f64,
}Expand description
Column weights for FTS5 bm25() ranking.
Fields§
§title: f64§summary: f64§body: f64§code_blocks: f64§front_matter: f64Implementations§
Source§impl FtsWeights
impl FtsWeights
Sourcepub fn from_config(config: &TreeSearchConfig) -> Self
pub fn from_config(config: &TreeSearchConfig) -> Self
Create weights from a TreeSearchConfig.
Trait Implementations§
Source§impl Clone for FtsWeights
impl Clone for FtsWeights
Source§impl Debug for FtsWeights
impl Debug for FtsWeights
Auto Trait Implementations§
impl Freeze for FtsWeights
impl RefUnwindSafe for FtsWeights
impl Send for FtsWeights
impl Sync for FtsWeights
impl Unpin for FtsWeights
impl UnsafeUnpin for FtsWeights
impl UnwindSafe for FtsWeights
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,
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