pub struct ScorerOptions {
pub collect_positions: bool,
pub initial_threshold: f32,
pub shared_threshold: Option<SharedThreshold>,
}Expand description
Options that affect scorer construction rather than scoring semantics.
Position postings can be much larger than the top-k result itself. Keeping this explicit lets ID/score-only collectors avoid loading them while query types that need positions for matching (for example phrases) remain free to load their own internal data.
Fields§
§collect_positions: bool§initial_threshold: f32Initial top-k score floor to seed into MaxScore/BMP pruning. Used to
carry the running k-th score across the segments of one query so later
segments prune from a nonzero threshold (see SharedThreshold). 0.0 =
no seed. Only honored on exact, final-score executor paths.
Live form of initial_threshold. Exact final-score executors may read
it during traversal so concurrently searched segments benefit as soon
as another segment establishes a stronger global floor.
Implementations§
Source§impl ScorerOptions
impl ScorerOptions
pub const fn with_positions() -> Self
Sourcepub fn without_threshold(&self) -> Self
pub fn without_threshold(&self) -> Self
Preserve collection behavior while preventing a nested/component scorer from applying a floor expressed in the outer query’s score space.
Trait Implementations§
Source§impl Clone for ScorerOptions
impl Clone for ScorerOptions
Source§fn clone(&self) -> ScorerOptions
fn clone(&self) -> ScorerOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ScorerOptions
impl Debug for ScorerOptions
Source§impl Default for ScorerOptions
impl Default for ScorerOptions
Source§fn default() -> ScorerOptions
fn default() -> ScorerOptions
Auto Trait Implementations§
impl Freeze for ScorerOptions
impl RefUnwindSafe for ScorerOptions
impl Send for ScorerOptions
impl Sync for ScorerOptions
impl Unpin for ScorerOptions
impl UnsafeUnpin for ScorerOptions
impl UnwindSafe for ScorerOptions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> for T
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
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>
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>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<E> ResultError for E
impl<T> ResultType for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.