pub enum Scorer {
Bm25,
Bm25Plus,
Dirichlet,
}Expand description
Which scoring family answers a query.
Variants§
Bm25
Okapi BM25, with no floor.
Bm25Plus
BM25 with a floor under each occurrence. The default; it leads plain BM25 at every granularity measured, see the README.
Dirichlet
Query likelihood with a Dirichlet prior.
Implementations§
Trait Implementations§
impl Copy for Scorer
impl Eq for Scorer
impl StructuralPartialEq for Scorer
Auto Trait Implementations§
impl Freeze for Scorer
impl RefUnwindSafe for Scorer
impl Send for Scorer
impl Sync for Scorer
impl Unpin for Scorer
impl UnsafeUnpin for Scorer
impl UnwindSafe for Scorer
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.