pub struct SearchPointsBuilder { /* private fields */ }
Expand description
Builder for SearchPoints
.
Implementations§
source§impl SearchPointsBuilder
impl SearchPointsBuilder
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(self, value: f32) -> Self
pub fn score_threshold(self, value: f32) -> 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 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
pub fn sparse_indices<VALUE: Into<SparseIndices>>(self, value: VALUE) -> Self
source§impl SearchPointsBuilder
impl SearchPointsBuilder
sourcepub fn build(self) -> SearchPoints
pub fn build(self) -> SearchPoints
Builds the desired type. Can often be omitted.
Trait Implementations§
source§impl From<SearchPointsBuilder> for SearchPoints
impl From<SearchPointsBuilder> for SearchPoints
source§fn from(value: SearchPointsBuilder) -> Self
fn from(value: SearchPointsBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SearchPointsBuilder
impl RefUnwindSafe for SearchPointsBuilder
impl Send for SearchPointsBuilder
impl Sync for SearchPointsBuilder
impl Unpin for SearchPointsBuilder
impl UnwindSafe for SearchPointsBuilder
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> 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>
Wrap the input message
T
in a tonic::Request