pub struct BM25FScorer { /* private fields */ }Expand description
BM25F scorer implementation
Implementations§
Source§impl BM25FScorer
impl BM25FScorer
Sourcepub fn new() -> BM25FScorer
pub fn new() -> BM25FScorer
Create a new BM25F scorer with default parameters
Sourcepub fn with_params(params: BM25Params, weights: FieldWeights) -> BM25FScorer
pub fn with_params(params: BM25Params, weights: FieldWeights) -> BM25FScorer
Create a new BM25F scorer with custom parameters
Sourcepub fn initialize(&mut self, documents: &[Document])
pub fn initialize(&mut self, documents: &[Document])
Initialize the scorer with a corpus of documents
Trait Implementations§
Source§impl Default for BM25FScorer
impl Default for BM25FScorer
Source§fn default() -> BM25FScorer
fn default() -> BM25FScorer
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BM25FScorer
impl RefUnwindSafe for BM25FScorer
impl Send for BM25FScorer
impl Sync for BM25FScorer
impl Unpin for BM25FScorer
impl UnsafeUnpin for BM25FScorer
impl UnwindSafe for BM25FScorer
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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