pub enum TextGatherMode {
Ranked,
Unranked,
RankWithinCap,
}Expand description
Controls how BM25 candidate rows are gathered before final ranking.
Variants§
Ranked
Current behavior: ORDER BY rank LIMIT top_k.
Unranked
Cheap gather without BM25 ranking; uniform text score 1.0.
RankWithinCap
Gather gather_limit rowids without ranking, then BM25-rank only that subset.
Trait Implementations§
Source§impl Clone for TextGatherMode
impl Clone for TextGatherMode
Source§fn clone(&self) -> TextGatherMode
fn clone(&self) -> TextGatherMode
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 TextGatherMode
impl Debug for TextGatherMode
Source§impl Default for TextGatherMode
impl Default for TextGatherMode
Source§fn default() -> TextGatherMode
fn default() -> TextGatherMode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TextGatherMode
impl<'de> Deserialize<'de> for TextGatherMode
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
impl Eq for TextGatherMode
Source§impl PartialEq for TextGatherMode
impl PartialEq for TextGatherMode
Source§fn eq(&self, other: &TextGatherMode) -> bool
fn eq(&self, other: &TextGatherMode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TextGatherMode
impl Serialize for TextGatherMode
impl StructuralPartialEq for TextGatherMode
Auto Trait Implementations§
impl Freeze for TextGatherMode
impl RefUnwindSafe for TextGatherMode
impl Send for TextGatherMode
impl Sync for TextGatherMode
impl Unpin for TextGatherMode
impl UnsafeUnpin for TextGatherMode
impl UnwindSafe for TextGatherMode
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