pub struct VectorSearchOptions {
pub top: usize,
pub skip: usize,
pub include_vectors: bool,
pub vector_field_name: Option<String>,
pub filter: Option<String>,
}Expand description
Paging and shaping options for a search.
Fields§
§top: usizeMaximum number of records to return. Must be greater than zero.
skip: usizeNumber of leading records to skip.
include_vectors: boolWhether returned records carry their vector fields.
vector_field_name: Option<String>Which vector field to search, when the collection has several.
filter: Option<String>Provider-specific filter expression, passed through verbatim.
Upstream accepts a Python lambda and parses its AST into each provider’s filter dialect. That has no Rust counterpart — there is no runtime AST to walk — so a filter here is the provider’s own expression, and a provider documents its dialect.
Implementations§
Source§impl VectorSearchOptions
impl VectorSearchOptions
pub fn new(top: usize) -> VectorSearchOptions
pub fn with_skip(self, skip: usize) -> VectorSearchOptions
pub fn with_include_vectors(self, include: bool) -> VectorSearchOptions
pub fn with_vector_field_name( self, name: impl Into<String>, ) -> VectorSearchOptions
pub fn with_filter(self, filter: impl Into<String>) -> VectorSearchOptions
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
Source§impl PartialEq for VectorSearchOptions
impl PartialEq for VectorSearchOptions
impl StructuralPartialEq for VectorSearchOptions
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§
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