pub struct SearchOptions { /* private fields */ }Expand description
Store-search controls, separating scan worker budget from tier selection.
Implementations§
Source§impl SearchOptions
impl SearchOptions
Sourcepub const fn new(scan: ScanOptions) -> Self
pub const fn new(scan: ScanOptions) -> Self
Creates options with no tier preference and the supplied scan worker budget.
Sourcepub const fn with_tier(self, tier: SearchTier) -> Self
pub const fn with_tier(self, tier: SearchTier) -> Self
Explicitly selects one store-search tier.
Sourcepub const fn with_scan_rescore(self, options: ScanRescoreOptions) -> Self
pub const fn with_scan_rescore(self, options: ScanRescoreOptions) -> Self
Selects quantized Scan candidates followed by exact full-precision scores.
Candidate membership remains approximate unless every eligible row is
rescored. A subsequent with_tier call clears these controls.
Sourcepub const fn scan_rescore(self) -> Option<ScanRescoreOptions>
pub const fn scan_rescore(self) -> Option<ScanRescoreOptions>
Explicit selected-row rescoring controls, absent for ordinary tiers.
Sourcepub const fn scan(self) -> ScanOptions
pub const fn scan(self) -> ScanOptions
Returns the scan worker controls used by scan-tier work.
Sourcepub const fn tier(self) -> SearchTier
pub const fn tier(self) -> SearchTier
Returns the effective execution tier, using automatic selection when the caller expressed no preference.
Trait Implementations§
Source§impl Clone for SearchOptions
impl Clone for SearchOptions
impl Copy for SearchOptions
Source§impl Debug for SearchOptions
impl Debug for SearchOptions
Source§impl Default for SearchOptions
impl Default for SearchOptions
impl Eq for SearchOptions
Source§impl From<ScanOptions> for SearchOptions
impl From<ScanOptions> for SearchOptions
Source§fn from(scan: ScanOptions) -> Self
fn from(scan: ScanOptions) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SearchOptions
impl PartialEq for SearchOptions
impl StructuralPartialEq for SearchOptions
Auto Trait Implementations§
impl Freeze for SearchOptions
impl RefUnwindSafe for SearchOptions
impl Send for SearchOptions
impl Sync for SearchOptions
impl Unpin for SearchOptions
impl UnsafeUnpin for SearchOptions
impl UnwindSafe for SearchOptions
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