pub struct VectorSearchOptions {
pub k: usize,
pub label: Option<String>,
pub properties: Option<HashMap<String, Value>>,
pub rescore_factor: Option<usize>,
}Expand description
Options for vector_search_with.
Fields§
§k: usizeMaximum number of results to return.
label: Option<String>If set, only nodes carrying this exact label are included in results.
properties: Option<HashMap<String, Value>>Optional property key-value filters. Only nodes matching all filters are returned.
rescore_factor: Option<usize>Rescore factor. When greater than 1, search fetches k * rescore_factor
candidates from the index and re-ranks them by exact distance against
the full-precision vectors stored in LMDB. Defaults to 2 on a quantized
index and 1 (no rescore) on a Float32 index. The default applies to
filtered searches too, where the over-fetch means the traversal must
find k * rescore_factor predicate-matching candidates; pass
Some(1) to disable rescoring for a selective filter.
Trait Implementations§
Source§impl Clone for VectorSearchOptions
impl Clone for VectorSearchOptions
Source§fn clone(&self) -> VectorSearchOptions
fn clone(&self) -> VectorSearchOptions
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 VectorSearchOptions
impl Debug for VectorSearchOptions
Source§impl Default for VectorSearchOptions
impl Default for VectorSearchOptions
Source§fn default() -> VectorSearchOptions
fn default() -> VectorSearchOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for VectorSearchOptions
impl RefUnwindSafe for VectorSearchOptions
impl Send for VectorSearchOptions
impl Sync for VectorSearchOptions
impl Unpin for VectorSearchOptions
impl UnsafeUnpin for VectorSearchOptions
impl UnwindSafe for VectorSearchOptions
Blanket Implementations§
impl<T> Allocation for T
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
impl<T> OrderedSeq<'_, T> for Twhere
T: Clone,
Source§impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
Source§impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
Source§fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
Invokes
WrappingSpan::make_wrapped to wrap an AST node in a span.