pub struct TermQuery<S = Root> { /* private fields */ }Expand description
An exact-match (term) clause on a string field, with optional
case_insensitive plus the universal boost / name.
Implementations§
Trait Implementations§
Source§impl<S> AsQuery<S> for TermQuery<S>
impl<S> AsQuery<S> for TermQuery<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.Auto Trait Implementations§
impl<S> Freeze for TermQuery<S>
impl<S> RefUnwindSafe for TermQuery<S>
impl<S> Send for TermQuery<S>
impl<S> Sync for TermQuery<S>
impl<S> Unpin for TermQuery<S>
impl<S> UnsafeUnpin for TermQuery<S>
impl<S> UnwindSafe for TermQuery<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