pub struct VectorQuery { /* private fields */ }Available on crate feature
vector only.Expand description
Builder for similarity search queries (VSIM).
Construct with VectorQuery::by_element or VectorQuery::by_vector,
then chain options before passing to VectorSetClient::search.
Implementations§
Source§impl VectorQuery
impl VectorQuery
Sourcepub fn by_element(element: impl Into<CommandArg>) -> Self
pub fn by_element(element: impl Into<CommandArg>) -> Self
Search for elements similar to an existing element in the set.
Sourcepub fn filter(self, expr: impl Into<String>) -> Self
pub fn filter(self, expr: impl Into<String>) -> Self
Filter results by an attribute expression.
Sourcepub fn withscores(self) -> Self
pub fn withscores(self) -> Self
Include similarity scores in the results.
Auto Trait Implementations§
impl !Freeze for VectorQuery
impl RefUnwindSafe for VectorQuery
impl Send for VectorQuery
impl Sync for VectorQuery
impl Unpin for VectorQuery
impl UnsafeUnpin for VectorQuery
impl UnwindSafe for VectorQuery
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