Skip to main content

Bm25fQueryPlan

Struct Bm25fQueryPlan 

Source
pub struct Bm25fQueryPlan {
    pub weights: Bm25fFieldWeights,
    pub b: f64,
    pub k1: f64,
}
Expand description

F5 (0.8.14 Slice 10) — the compiled BM25F query plan for the fielded lexical arm (ADR-0.8.1 §3.2 BM25fQueryPlan). Carries the tunable per-field weights and the tunable length-normalization b (and the term-saturation k1).

NOTE on b: SQLite FTS5’s built-in bm25() auxiliary function pins its internal k1/b and exposes ONLY per-column weights — it cannot express a tunable b. So the score is computed in-engine (a textbook BM25F over the FTS5-recalled candidates) rather than delegated to the built-in bm25(): that is what makes b (and k1) genuinely tunable here, not a dead parameter. The search_index_v2 FTS5 index is still load-bearing — it does the candidate recall (MATCH) that the scorer then ranks.

Defaults match Robertson/SQLite BM25 (b = 0.75, k1 = 1.2) with uniform field weights. Engine-internal for 0.8.14 (no SDK surface).

Fields§

§weights: Bm25fFieldWeights§b: f64§k1: f64

Trait Implementations§

Source§

impl Clone for Bm25fQueryPlan

Source§

fn clone(&self) -> Bm25fQueryPlan

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for Bm25fQueryPlan

Source§

impl Debug for Bm25fQueryPlan

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Bm25fQueryPlan

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl PartialEq for Bm25fQueryPlan

Source§

fn eq(&self, other: &Bm25fQueryPlan) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Bm25fQueryPlan

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.