pub struct FtHybridOptions<'a> { /* private fields */ }Expand description
Post-processing options for the ft_hybrid command.
Implementations§
Source§impl<'a> FtHybridOptions<'a>
impl<'a> FtHybridOptions<'a>
Sourcepub fn combine(self, combine: FtHybridCombine) -> Self
pub fn combine(self, combine: FtHybridCombine) -> Self
Sets the fusion method used to combine the search and vector results.
Sourcepub fn limit(self, offset: u32, num: u32) -> Self
pub fn limit(self, offset: u32, num: u32) -> Self
Limits the final results to num starting at offset (zero-based).
Sourcepub fn sortby(self, field: &'a str, order: SortOrder) -> Self
pub fn sortby(self, field: &'a str, order: SortOrder) -> Self
Sorts the final results by field.
Sourcepub fn load(self, fields: impl IntoIterator<Item = &'a str>) -> Self
pub fn load(self, fields: impl IntoIterator<Item = &'a str>) -> Self
Loads the given document fields (LOAD count field ...).
Sourcepub fn groupby(self, groupby: FtGroupBy<'a>) -> Self
pub fn groupby(self, groupby: FtGroupBy<'a>) -> Self
Groups the fused results by one or more properties, applying reduction
functions (GROUPBY count property ... REDUCE ...).
Sourcepub fn apply(self, expr: &'a str, name: &'a str) -> Self
pub fn apply(self, expr: &'a str, name: &'a str) -> Self
Applies a transformation, storing the result as name (APPLY expr AS name).
Can be called multiple times.
Sourcepub fn filter(self, filter: &'a str) -> Self
pub fn filter(self, filter: &'a str) -> Self
Post-filters the fused results with a search expression, applied after
COMBINE/GROUPBY/APPLY (FILTER expr).
Sourcepub fn format(self, format: FtHybridFormat) -> Self
pub fn format(self, format: FtHybridFormat) -> Self
Sets the serialization format of the returned attribute values (FORMAT).
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for FtHybridOptions<'a>
impl<'a> RefUnwindSafe for FtHybridOptions<'a>
impl<'a> Send for FtHybridOptions<'a>
impl<'a> Sync for FtHybridOptions<'a>
impl<'a> Unpin for FtHybridOptions<'a>
impl<'a> UnsafeUnpin for FtHybridOptions<'a>
impl<'a> UnwindSafe for FtHybridOptions<'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