pub struct SearchPointGroupsBuilder { /* private fields */ }
Expand description
Builder for SearchPointGroups
.
Implementations§
source§impl SearchPointGroupsBuilder
impl SearchPointGroupsBuilder
sourcepub fn collection_name(self, value: String) -> Self
pub fn collection_name(self, value: String) -> Self
Name of the collection
sourcepub fn filter<VALUE: Into<Filter>>(self, value: VALUE) -> Self
pub fn filter<VALUE: Into<Filter>>(self, value: VALUE) -> Self
Filter conditions - return only those points that satisfy the specified conditions
sourcepub fn with_payload<VALUE: Into<SelectorOptions>>(self, value: VALUE) -> Self
pub fn with_payload<VALUE: Into<SelectorOptions>>(self, value: VALUE) -> Self
Options for specifying which payload to include or not
sourcepub fn params<VALUE: Into<SearchParams>>(self, value: VALUE) -> Self
pub fn params<VALUE: Into<SearchParams>>(self, value: VALUE) -> Self
Search config
sourcepub fn score_threshold<VALUE: Into<f32>>(self, value: VALUE) -> Self
pub fn score_threshold<VALUE: Into<f32>>(self, value: VALUE) -> Self
If provided - cut off results with worse scores
sourcepub fn vector_name<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn vector_name<VALUE: Into<String>>(self, value: VALUE) -> Self
Which vector to use for search, if not specified - use default vector
sourcepub fn with_vectors<VALUE: Into<SelectorOptions>>(self, value: VALUE) -> Self
pub fn with_vectors<VALUE: Into<SelectorOptions>>(self, value: VALUE) -> Self
Options for specifying which vectors to include into response
sourcepub fn group_by(self, value: String) -> Self
pub fn group_by(self, value: String) -> Self
Payload field to group by, must be a string or number field. If there are multiple values for the field, all of them will be used. One point can be in multiple groups.
sourcepub fn group_size(self, value: u32) -> Self
pub fn group_size(self, value: u32) -> Self
Maximum amount of points to return per group
sourcepub fn read_consistency<VALUE: Into<Value>>(self, value: VALUE) -> Self
pub fn read_consistency<VALUE: Into<Value>>(self, value: VALUE) -> Self
Options for specifying read consistency guarantees
sourcepub fn with_lookup<VALUE: Into<WithLookup>>(self, value: VALUE) -> Self
pub fn with_lookup<VALUE: Into<WithLookup>>(self, value: VALUE) -> Self
Options for specifying how to use the group id to lookup points in another collection
sourcepub fn timeout<VALUE: Into<u64>>(self, value: VALUE) -> Self
pub fn timeout<VALUE: Into<u64>>(self, value: VALUE) -> Self
If set, overrides global timeout setting for this request. Unit is seconds.
sourcepub fn shard_key_selector<VALUE: Into<ShardKeySelector>>(
self,
value: VALUE,
) -> Self
pub fn shard_key_selector<VALUE: Into<ShardKeySelector>>( self, value: VALUE, ) -> Self
Specify in which shards to look for the points, if not specified - look in all shards
pub fn sparse_indices<VALUE: Into<SparseIndices>>(self, value: VALUE) -> Self
source§impl SearchPointGroupsBuilder
impl SearchPointGroupsBuilder
sourcepub fn build(self) -> SearchPointGroups
pub fn build(self) -> SearchPointGroups
Builds the desired type. Can often be omitted.
Trait Implementations§
source§impl From<SearchPointGroupsBuilder> for SearchPointGroups
impl From<SearchPointGroupsBuilder> for SearchPointGroups
source§fn from(value: SearchPointGroupsBuilder) -> Self
fn from(value: SearchPointGroupsBuilder) -> Self
Auto Trait Implementations§
impl Freeze for SearchPointGroupsBuilder
impl RefUnwindSafe for SearchPointGroupsBuilder
impl Send for SearchPointGroupsBuilder
impl Sync for SearchPointGroupsBuilder
impl Unpin for SearchPointGroupsBuilder
impl UnwindSafe for SearchPointGroupsBuilder
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request