pub struct QueryPointsBuilder { /* private fields */ }
Expand description
Builder for QueryPoints
.
Implementations§
source§impl QueryPointsBuilder
impl QueryPointsBuilder
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 offset(self, value: u64) -> Self
pub fn offset(self, value: u64) -> Self
Offset of the result. Skip this many points. Default is 0.
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 the response.
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 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 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.
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
source§impl QueryPointsBuilder
impl QueryPointsBuilder
sourcepub fn build(self) -> QueryPoints
pub fn build(self) -> QueryPoints
Builds the desired type. Can often be omitted.
source§impl QueryPointsBuilder
impl QueryPointsBuilder
pub fn add_prefetch(self, prefetch_query: impl Into<PrefetchQuery>) -> Self
Trait Implementations§
source§impl From<QueryPointsBuilder> for QueryPoints
impl From<QueryPointsBuilder> for QueryPoints
source§fn from(value: QueryPointsBuilder) -> Self
fn from(value: QueryPointsBuilder) -> Self
Auto Trait Implementations§
impl Freeze for QueryPointsBuilder
impl RefUnwindSafe for QueryPointsBuilder
impl Send for QueryPointsBuilder
impl Sync for QueryPointsBuilder
impl Unpin for QueryPointsBuilder
impl UnwindSafe for QueryPointsBuilder
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