pub struct GroupBySearchQuery {
pub field_name: String,
pub group_by_field: String,
pub vector: Vec<f32>,
pub binary_vector: Option<Vec<u8>>,
pub group_count: u32,
pub group_topk: u32,
pub filter: Option<String>,
pub include_vector: bool,
pub output_fields: Option<Vec<String>>,
pub params: Map<String, Value>,
}Expand description
Group-by vector query payload.
Fields§
§field_name: String§group_by_field: String§vector: Vec<f32>§binary_vector: Option<Vec<u8>>§group_count: u32§group_topk: u32§filter: Option<String>§include_vector: bool§output_fields: Option<Vec<String>>§params: Map<String, Value>Implementations§
Source§impl GroupBySearchQuery
impl GroupBySearchQuery
pub fn new( field_name: &str, group_by_field: &str, vector: &[f32], group_count: u32, group_topk: u32, ) -> Result<Self>
Sourcepub fn binary(
field_name: &str,
group_by_field: &str,
vector: &[u8],
group_count: u32,
group_topk: u32,
) -> Result<Self>
pub fn binary( field_name: &str, group_by_field: &str, vector: &[u8], group_count: u32, group_topk: u32, ) -> Result<Self>
Creates a grouped packed-binary exact query.
pub fn set_filter(&mut self, filter: &str) -> Result<()>
pub fn set_include_vector(&mut self, include: bool) -> Result<()>
pub fn set_output_fields(&mut self, fields: &[&str]) -> Result<()>
pub fn set_hnsw_params(&mut self, params: HnswQueryParams) -> Result<()>
pub fn set_ivf_params(&mut self, params: IvfQueryParams) -> Result<()>
pub fn set_ivf_rabitq_params( &mut self, params: IvfRabitqQueryParams, ) -> Result<()>
pub fn set_flat_params(&mut self, _params: FlatQueryParams) -> Result<()>
pub fn set_diskann_params(&mut self, params: DiskannQueryParams) -> Result<()>
Trait Implementations§
Source§impl Clone for GroupBySearchQuery
impl Clone for GroupBySearchQuery
Source§impl Debug for GroupBySearchQuery
impl Debug for GroupBySearchQuery
Source§impl<'de> Deserialize<'de> for GroupBySearchQuery
impl<'de> Deserialize<'de> for GroupBySearchQuery
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for GroupBySearchQuery
impl PartialEq for GroupBySearchQuery
Source§impl Serialize for GroupBySearchQuery
impl Serialize for GroupBySearchQuery
impl StructuralPartialEq for GroupBySearchQuery
Auto Trait Implementations§
impl Freeze for GroupBySearchQuery
impl RefUnwindSafe for GroupBySearchQuery
impl Send for GroupBySearchQuery
impl Sync for GroupBySearchQuery
impl Unpin for GroupBySearchQuery
impl UnsafeUnpin for GroupBySearchQuery
impl UnwindSafe for GroupBySearchQuery
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more