pub struct TextQueryBuilder { /* private fields */ }Expand description
Builder for TextQuery, ranking points by BM25 over the text index of a payload field.
The payload field is selected with using on the query request, and its text index must
have scoring enabled, see TextIndexParamsBuilder::bm25_scoring.
Implementations§
Source§impl TextQueryBuilder
impl TextQueryBuilder
Sourcepub fn new(query: impl Into<String>) -> Self
pub fn new(query: impl Into<String>) -> Self
Create a new TextQueryBuilder for the given text.
§Examples
use qdrant_client::qdrant::TextQueryBuilder;
let text_query = TextQueryBuilder::new("vector database").k(1.5).b(0.5).build();Trait Implementations§
Source§impl Clone for TextQueryBuilder
impl Clone for TextQueryBuilder
Source§impl From<TextQueryBuilder> for TextQuery
impl From<TextQueryBuilder> for TextQuery
Source§fn from(value: TextQueryBuilder) -> Self
fn from(value: TextQueryBuilder) -> Self
Converts to this type from the input type.
Source§impl From<TextQueryBuilder> for Query
impl From<TextQueryBuilder> for Query
Source§fn from(value: TextQueryBuilder) -> Self
fn from(value: TextQueryBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TextQueryBuilder
impl RefUnwindSafe for TextQueryBuilder
impl Send for TextQueryBuilder
impl Sync for TextQueryBuilder
impl Unpin for TextQueryBuilder
impl UnsafeUnpin for TextQueryBuilder
impl UnwindSafe for TextQueryBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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