pub struct SearchParams {
pub k: usize,
pub filter: Option<Filter>,
pub ef_search: usize,
pub with_payload: bool,
pub with_vector: bool,
}Expand description
Parameters for a Database::search.
Fields§
§k: usizeNumber of results to return.
filter: Option<Filter>Optional payload predicate. The planner pre-filters through the collection’s secondary indexes when the filter is selective enough, and otherwise post-filters the ANN candidates; either way the full predicate is re-checked, so results are exact.
ef_search: usizeSearch beam width (recall/latency knob), clamped up to at least k.
with_payload: boolInclude payloads in the results.
with_vector: boolInclude vectors in the results.
Trait Implementations§
Source§impl Clone for SearchParams
impl Clone for SearchParams
Source§fn clone(&self) -> SearchParams
fn clone(&self) -> SearchParams
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 SearchParams
impl Debug for SearchParams
Auto Trait Implementations§
impl Freeze for SearchParams
impl RefUnwindSafe for SearchParams
impl Send for SearchParams
impl Sync for SearchParams
impl Unpin for SearchParams
impl UnsafeUnpin for SearchParams
impl UnwindSafe for SearchParams
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