pub struct QueryPointGroupsBuilder { /* private fields */ }
Expand description
Builder for QueryPointGroups
.
Implementations§
source§impl QueryPointGroupsBuilder
impl QueryPointGroupsBuilder
sourcepub fn collection_name(self, value: String) -> Self
pub fn collection_name(self, value: String) -> Self
Name of the collection
sourcepub fn prefetch<VALUE: Into<Vec<PrefetchQuery>>>(self, value: VALUE) -> Self
pub fn prefetch<VALUE: Into<Vec<PrefetchQuery>>>(self, value: VALUE) -> Self
Sub-requests to perform first. If present, the query will be performed on the results of the prefetches.
sourcepub fn query<VALUE: Into<Query>>(self, value: VALUE) -> Self
pub fn query<VALUE: Into<Query>>(self, value: VALUE) -> Self
Query to perform. If missing, returns points ordered by their IDs.
sourcepub fn using<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn using<VALUE: Into<String>>(self, value: VALUE) -> Self
Define which vector to use for querying. If missing, the default vector is used.
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 params<VALUE: Into<SearchParams>>(self, value: VALUE) -> Self
pub fn params<VALUE: Into<SearchParams>>(self, value: VALUE) -> Self
Search params for when there is no prefetch.
sourcepub fn score_threshold<VALUE: Into<f32>>(self, value: VALUE) -> Self
pub fn score_threshold<VALUE: Into<f32>>(self, value: VALUE) -> Self
Return points with scores better than this threshold.
sourcepub fn with_payload<VALUE: Into<WithPayloadSelector>>(
self,
value: VALUE,
) -> Self
pub fn with_payload<VALUE: Into<WithPayloadSelector>>( self, value: VALUE, ) -> Self
Options for specifying which payload to include or not
sourcepub fn with_vectors<VALUE: Into<WithVectorsSelector>>(
self,
value: VALUE,
) -> Self
pub fn with_vectors<VALUE: Into<WithVectorsSelector>>( self, value: VALUE, ) -> Self
Options for specifying which vectors to include into response
sourcepub fn lookup_from<VALUE: Into<LookupLocation>>(self, value: VALUE) -> Self
pub fn lookup_from<VALUE: Into<LookupLocation>>(self, value: VALUE) -> Self
The location to use for IDs lookup, if not specified - use the current collection and the ‘using’ vector
sourcepub fn group_size<VALUE: Into<u64>>(self, value: VALUE) -> Self
pub fn group_size<VALUE: Into<u64>>(self, value: VALUE) -> Self
Maximum amount of points to return per group. Default to 10.
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 read_consistency<VALUE: Into<ReadConsistency>>(
self,
value: VALUE,
) -> Self
pub fn read_consistency<VALUE: Into<ReadConsistency>>( 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
source§impl QueryPointGroupsBuilder
impl QueryPointGroupsBuilder
sourcepub fn build(self) -> QueryPointGroups
pub fn build(self) -> QueryPointGroups
Builds the desired type. Can often be omitted.
source§impl QueryPointGroupsBuilder
impl QueryPointGroupsBuilder
pub fn add_prefetch(self, prefetch_query: impl Into<PrefetchQuery>) -> Self
Trait Implementations§
source§impl From<QueryPointGroupsBuilder> for QueryPointGroups
impl From<QueryPointGroupsBuilder> for QueryPointGroups
source§fn from(value: QueryPointGroupsBuilder) -> Self
fn from(value: QueryPointGroupsBuilder) -> Self
Auto Trait Implementations§
impl Freeze for QueryPointGroupsBuilder
impl RefUnwindSafe for QueryPointGroupsBuilder
impl Send for QueryPointGroupsBuilder
impl Sync for QueryPointGroupsBuilder
impl Unpin for QueryPointGroupsBuilder
impl UnwindSafe for QueryPointGroupsBuilder
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