Struct lance_index::vector::Query
source · pub struct Query {
pub column: String,
pub key: ArrayRef,
pub k: usize,
pub nprobes: usize,
pub ef: Option<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.
ef: Option<usize>The number of candidates to reserve while searching. this is an optional parameter for HNSW related index types.
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 Freeze for Query
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
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>
Converts
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>
Converts
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 more