pub struct FtHybridVsim<'a> { /* private fields */ }Expand description
Vector-similarity component of the ft_hybrid command.
Implementations§
Source§impl<'a> FtHybridVsim<'a>
impl<'a> FtHybridVsim<'a>
Sourcepub fn new(field: &'a str, vector: &'a str) -> Self
pub fn new(field: &'a str, vector: &'a str) -> Self
Creates a vector-similarity clause on field, comparing against the vector
referenced by vector (e.g. $vec, whose bytes are supplied via PARAMS).
Sourcepub fn query(self, query: FtHybridVectorQuery) -> Self
pub fn query(self, query: FtHybridVectorQuery) -> Self
Sets the vector query type (KNN or RANGE).
Sourcepub fn filter(self, filter: &'a str) -> Self
pub fn filter(self, filter: &'a str) -> Self
Pre-filters the vector results with a search expression.
Sourcepub fn yield_score_as(self, name: &'a str) -> Self
pub fn yield_score_as(self, name: &'a str) -> Self
Aliases the vector score for use in post-processing.
Auto Trait Implementations§
impl<'a> Freeze for FtHybridVsim<'a>
impl<'a> RefUnwindSafe for FtHybridVsim<'a>
impl<'a> Send for FtHybridVsim<'a>
impl<'a> Sync for FtHybridVsim<'a>
impl<'a> Unpin for FtHybridVsim<'a>
impl<'a> UnsafeUnpin for FtHybridVsim<'a>
impl<'a> UnwindSafe for FtHybridVsim<'a>
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