Struct lance_index::vector::Query
source · pub struct Query {
pub column: String,
pub key: ArrayRef,
pub k: usize,
pub nprobes: usize,
pub refine_factor: Option<u32>,
pub metric_type: MetricType,
pub use_index: bool,
}Expand description
Query parameters for the vector indices
Fields§
§column: StringThe column to be searched.
key: ArrayRefThe vector to be searched.
k: usizeTop k results to return.
nprobes: usizeThe number of probes to load and search.
refine_factor: Option<u32>If presented, apply a refine step. TODO: should we support fraction / float number here?
metric_type: MetricTypeDistance metric type
use_index: boolWhether to use an ANN index if available
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Query
impl Send for Query
impl Sync for Query
impl Unpin for Query
impl !UnwindSafe for Query
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