pub struct QueryStringQuery<S = Root> { /* private fields */ }Expand description
A query_string clause.
Implementations§
Source§impl<S> QueryStringQuery<S>
impl<S> QueryStringQuery<S>
Sourcepub fn default_field(self, field: impl Into<String>) -> Self
pub fn default_field(self, field: impl Into<String>) -> Self
The single field searched when the query text names none.
Sourcepub fn fields<Sub>(self, fields: impl IntoIterator<Item = Text<S, Sub>>) -> Self
pub fn fields<Sub>(self, fields: impl IntoIterator<Item = Text<S, Sub>>) -> Self
The fields searched (each may carry a ^weight via Text::boosted).
Sourcepub fn default_operator(self, operator: Operator) -> Self
pub fn default_operator(self, operator: Operator) -> Self
Default boolean operator between terms (Operator::Or default).
Sourcepub fn analyzer(self, analyzer: impl Into<String>) -> Self
pub fn analyzer(self, analyzer: impl Into<String>) -> Self
Override the analyzer applied to the query text.
Sourcepub fn lenient(self, lenient: bool) -> Self
pub fn lenient(self, lenient: bool) -> Self
Ignore format errors (e.g. text against a numeric field).
Trait Implementations§
Source§impl<S> AsQuery<S> for QueryStringQuery<S>
impl<S> AsQuery<S> for QueryStringQuery<S>
Source§fn into_query(self) -> Option<Query<S>>
fn into_query(self) -> Option<Query<S>>
The clause this produces, or
None to contribute nothing.Source§fn and(self, other: impl AsQuery<S>) -> Query<S>where
Self: Sized,
fn and(self, other: impl AsQuery<S>) -> Query<S>where
Self: Sized,
self AND other. An absent side is the identity.Source§fn or(self, other: impl AsQuery<S>) -> Query<S>where
Self: Sized,
fn or(self, other: impl AsQuery<S>) -> Query<S>where
Self: Sized,
self OR other. An absent side is the identity.Source§impl<S: Clone> Clone for QueryStringQuery<S>
impl<S: Clone> Clone for QueryStringQuery<S>
Source§fn clone(&self) -> QueryStringQuery<S>
fn clone(&self) -> QueryStringQuery<S>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<S> Freeze for QueryStringQuery<S>
impl<S> RefUnwindSafe for QueryStringQuery<S>
impl<S> Send for QueryStringQuery<S>
impl<S> Sync for QueryStringQuery<S>
impl<S> Unpin for QueryStringQuery<S>
impl<S> UnsafeUnpin for QueryStringQuery<S>
impl<S> UnwindSafe for QueryStringQuery<S>
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