pub struct PrefetchQueryBuilder { /* private fields */ }
Expand description
Builder for PrefetchQuery
.
Implementations§
source§impl PrefetchQueryBuilder
impl PrefetchQueryBuilder
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 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 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 PrefetchQueryBuilder
impl PrefetchQueryBuilder
sourcepub fn build(self) -> PrefetchQuery
pub fn build(self) -> PrefetchQuery
Builds the desired type. Can often be omitted.
source§impl PrefetchQueryBuilder
impl PrefetchQueryBuilder
pub fn add_prefetch(self, prefetch_query: impl Into<PrefetchQuery>) -> Self
Trait Implementations§
source§impl Default for PrefetchQueryBuilder
impl Default for PrefetchQueryBuilder
source§impl From<PrefetchQueryBuilder> for PrefetchQuery
impl From<PrefetchQueryBuilder> for PrefetchQuery
source§fn from(value: PrefetchQueryBuilder) -> Self
fn from(value: PrefetchQueryBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PrefetchQueryBuilder
impl RefUnwindSafe for PrefetchQueryBuilder
impl Send for PrefetchQueryBuilder
impl Sync for PrefetchQueryBuilder
impl Unpin for PrefetchQueryBuilder
impl UnwindSafe for PrefetchQueryBuilder
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