pub struct DiscoverPointsBuilder { /* private fields */ }
Expand description
Builder for DiscoverPoints
.
Implementations§
source§impl DiscoverPointsBuilder
impl DiscoverPointsBuilder
sourcepub fn collection_name(self, value: String) -> Self
pub fn collection_name(self, value: String) -> Self
name of the collection
sourcepub fn target<VALUE: Into<TargetVector>>(self, value: VALUE) -> Self
pub fn target<VALUE: Into<TargetVector>>(self, value: VALUE) -> Self
Use this as the primary search objective
sourcepub fn context(self, value: Vec<ContextExamplePair>) -> Self
pub fn context(self, value: Vec<ContextExamplePair>) -> Self
Search will be constrained by these pairs of examples
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 using<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn using<VALUE: Into<String>>(self, value: VALUE) -> Self
Define which vector to use for recommendation, if not specified - 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 lookup_from<VALUE: Into<LookupLocation>>(self, value: VALUE) -> Self
pub fn lookup_from<VALUE: Into<LookupLocation>>(self, value: VALUE) -> Self
Name of the collection to use for points lookup, if not specified - use current collection
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 timeout(self, value: u64) -> Self
pub fn timeout(self, value: u64) -> 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 DiscoverPointsBuilder
impl DiscoverPointsBuilder
sourcepub fn build(self) -> DiscoverPoints
pub fn build(self) -> DiscoverPoints
Builds the desired type. Can often be omitted.
Trait Implementations§
source§impl From<DiscoverPointsBuilder> for DiscoverPoints
impl From<DiscoverPointsBuilder> for DiscoverPoints
source§fn from(value: DiscoverPointsBuilder) -> Self
fn from(value: DiscoverPointsBuilder) -> Self
Auto Trait Implementations§
impl Freeze for DiscoverPointsBuilder
impl RefUnwindSafe for DiscoverPointsBuilder
impl Send for DiscoverPointsBuilder
impl Sync for DiscoverPointsBuilder
impl Unpin for DiscoverPointsBuilder
impl UnwindSafe for DiscoverPointsBuilder
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