pub enum TermsSetMinimumShouldMatch {
Field(String),
Script(TermsSetScript),
}
Expand description
Number of matching terms to be required
Variants
Field(String)
Numeric field containing the number of matching terms required to return a document.
Script(TermsSetScript)
Custom script containing the number of matching terms required to return a document.
For parameters and valid values, see Scripting.
For an example query using the minimum_should_match_script
parameter, see
How to use the minimum_should_match_script
parameter.
Trait Implementations
sourceimpl Clone for TermsSetMinimumShouldMatch
impl Clone for TermsSetMinimumShouldMatch
sourcefn clone(&self) -> TermsSetMinimumShouldMatch
fn clone(&self) -> TermsSetMinimumShouldMatch
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TermsSetMinimumShouldMatch
impl Debug for TermsSetMinimumShouldMatch
sourceimpl<'a> From<&'a str> for TermsSetMinimumShouldMatch
impl<'a> From<&'a str> for TermsSetMinimumShouldMatch
sourceimpl From<String> for TermsSetMinimumShouldMatch
impl From<String> for TermsSetMinimumShouldMatch
sourceimpl From<TermsSetScript> for TermsSetMinimumShouldMatch
impl From<TermsSetScript> for TermsSetMinimumShouldMatch
sourcefn from(script: TermsSetScript) -> Self
fn from(script: TermsSetScript) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<TermsSetMinimumShouldMatch> for TermsSetMinimumShouldMatch
impl PartialEq<TermsSetMinimumShouldMatch> for TermsSetMinimumShouldMatch
sourcefn eq(&self, other: &TermsSetMinimumShouldMatch) -> bool
fn eq(&self, other: &TermsSetMinimumShouldMatch) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &TermsSetMinimumShouldMatch) -> bool
fn ne(&self, other: &TermsSetMinimumShouldMatch) -> bool
This method tests for !=
.
impl StructuralPartialEq for TermsSetMinimumShouldMatch
Auto Trait Implementations
impl RefUnwindSafe for TermsSetMinimumShouldMatch
impl Send for TermsSetMinimumShouldMatch
impl Sync for TermsSetMinimumShouldMatch
impl Unpin for TermsSetMinimumShouldMatch
impl UnwindSafe for TermsSetMinimumShouldMatch
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more