pub struct DisMaxQuery<S = Root> { /* private fields */ }Expand description
A dis_max clause.
Implementations§
Source§impl<S> DisMaxQuery<S>
impl<S> DisMaxQuery<S>
Sourcepub fn tie_breaker(self, tie_breaker: f32) -> Self
pub fn tie_breaker(self, tie_breaker: f32) -> Self
How much the non-winning clauses contribute (0.0–1.0).
Trait Implementations§
Source§impl<S> AsQuery<S> for DisMaxQuery<S>
impl<S> AsQuery<S> for DisMaxQuery<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 DisMaxQuery<S>
impl<S: Clone> Clone for DisMaxQuery<S>
Source§fn clone(&self) -> DisMaxQuery<S>
fn clone(&self) -> DisMaxQuery<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 DisMaxQuery<S>
impl<S> RefUnwindSafe for DisMaxQuery<S>
impl<S> Send for DisMaxQuery<S>
impl<S> Sync for DisMaxQuery<S>
impl<S> Unpin for DisMaxQuery<S>
impl<S> UnsafeUnpin for DisMaxQuery<S>
impl<S> UnwindSafe for DisMaxQuery<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