pub struct SearchQueryBuilder { /* private fields */ }Expand description
Builder for constructing a SearchQuery.
Implementations§
Source§impl SearchQueryBuilder
impl SearchQueryBuilder
Sourcepub fn field_name(self, name: &str) -> Self
pub fn field_name(self, name: &str) -> Self
Sets the field name to query.
Sourcepub fn include_vector(self, include: bool) -> Self
pub fn include_vector(self, include: bool) -> Self
Sets whether to include vector data in results.
Sourcepub fn include_doc_id(self, include: bool) -> Self
pub fn include_doc_id(self, include: bool) -> Self
Sets whether to include doc ID in results.
Sourcepub fn output_fields(self, fields: &[&str]) -> Self
pub fn output_fields(self, fields: &[&str]) -> Self
Sets the output fields.
Sourcepub fn fts_query_string(self, query: &str) -> Self
pub fn fts_query_string(self, query: &str) -> Self
Sets the FTS boolean / advanced query expression.
Sourcepub fn fts_match_string(self, match_str: &str) -> Self
pub fn fts_match_string(self, match_str: &str) -> Self
Sets the FTS natural-language match string.
Sourcepub fn build(self) -> Result<SearchQuery>
pub fn build(self) -> Result<SearchQuery>
Builds the search query.
Auto Trait Implementations§
impl Freeze for SearchQueryBuilder
impl RefUnwindSafe for SearchQueryBuilder
impl Send for SearchQueryBuilder
impl Sync for SearchQueryBuilder
impl Unpin for SearchQueryBuilder
impl UnsafeUnpin for SearchQueryBuilder
impl UnwindSafe for SearchQueryBuilder
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