pub struct MoreLikeThisQuery<S = Root> { /* private fields */ }Expand description
A more_like_this clause.
Implementations§
Source§impl<S> MoreLikeThisQuery<S>
impl<S> MoreLikeThisQuery<S>
Sourcepub fn min_term_freq(self, min_term_freq: u32) -> Self
pub fn min_term_freq(self, min_term_freq: u32) -> Self
Ignore source terms occurring fewer than this many times.
Sourcepub fn max_query_terms(self, max_query_terms: u32) -> Self
pub fn max_query_terms(self, max_query_terms: u32) -> Self
Cap on the terms selected from the source text.
Sourcepub fn minimum_should_match(self, value: impl Into<MinimumShouldMatch>) -> Self
pub fn minimum_should_match(self, value: impl Into<MinimumShouldMatch>) -> Self
How many selected terms must match (e.g. MinimumShouldMatch::percent(30)).
Trait Implementations§
Source§impl<S> AsQuery<S> for MoreLikeThisQuery<S>
impl<S> AsQuery<S> for MoreLikeThisQuery<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 MoreLikeThisQuery<S>
impl<S: Clone> Clone for MoreLikeThisQuery<S>
Source§fn clone(&self) -> MoreLikeThisQuery<S>
fn clone(&self) -> MoreLikeThisQuery<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 MoreLikeThisQuery<S>
impl<S> RefUnwindSafe for MoreLikeThisQuery<S>
impl<S> Send for MoreLikeThisQuery<S>
impl<S> Sync for MoreLikeThisQuery<S>
impl<S> Unpin for MoreLikeThisQuery<S>
impl<S> UnsafeUnpin for MoreLikeThisQuery<S>
impl<S> UnwindSafe for MoreLikeThisQuery<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