pub struct SearchParamsBuilder { /* private fields */ }
Expand description
Builder for SearchParams
.
Implementations§
source§impl SearchParamsBuilder
impl SearchParamsBuilder
sourcepub fn hnsw_ef(self, value: u64) -> Self
pub fn hnsw_ef(self, value: u64) -> Self
Params relevant to HNSW index. Size of the beam in a beam-search. Larger the value - more accurate the result, more time required for search.
sourcepub fn exact(self, value: bool) -> Self
pub fn exact(self, value: bool) -> Self
Search without approximation. If set to true, search may run long but with exact results.
sourcepub fn quantization<VALUE: Into<QuantizationSearchParams>>(
self,
value: VALUE,
) -> Self
pub fn quantization<VALUE: Into<QuantizationSearchParams>>( self, value: VALUE, ) -> Self
If set to true, search will ignore quantized vector data
sourcepub fn indexed_only(self, value: bool) -> Self
pub fn indexed_only(self, value: bool) -> Self
If enabled, the engine will only perform search among indexed or small segments. Using this option prevents slow searches in case of delayed index, but does not guarantee that all uploaded vectors will be included in search results
source§impl SearchParamsBuilder
impl SearchParamsBuilder
sourcepub fn build(self) -> SearchParams
pub fn build(self) -> SearchParams
Builds the desired type. Can often be omitted.
Trait Implementations§
source§impl Default for SearchParamsBuilder
impl Default for SearchParamsBuilder
source§impl From<SearchParamsBuilder> for SearchParams
impl From<SearchParamsBuilder> for SearchParams
source§fn from(value: SearchParamsBuilder) -> Self
fn from(value: SearchParamsBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SearchParamsBuilder
impl RefUnwindSafe for SearchParamsBuilder
impl Send for SearchParamsBuilder
impl Sync for SearchParamsBuilder
impl Unpin for SearchParamsBuilder
impl UnwindSafe for SearchParamsBuilder
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