pub struct SearchOptions {
pub pruning: bool,
pub window: u64,
}Expand description
Tunables of the search loop.
Fields§
§pruning: boolSkip id ranges that cannot reach the top-k. Disabling it scores every record present in any query lane; results are identical.
window: u64Width, in record ids, of one scoring window (clamped to
1..=MAX_WINDOW). Each window costs a pass over the scores buffer,
so it should stay small when ids are sparse and large when they are
dense. The default of 4096 suits dense, contiguous ids.
Implementations§
Source§impl SearchOptions
impl SearchOptions
pub fn exhaustive() -> Self
Trait Implementations§
Source§impl Clone for SearchOptions
impl Clone for SearchOptions
Source§fn clone(&self) -> SearchOptions
fn clone(&self) -> SearchOptions
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 moreimpl Copy for SearchOptions
Source§impl Debug for SearchOptions
impl Debug 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