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§
Source§impl Clone for TermsSetMinimumShouldMatch
impl Clone for TermsSetMinimumShouldMatch
Source§fn clone(&self) -> TermsSetMinimumShouldMatch
fn clone(&self) -> TermsSetMinimumShouldMatch
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TermsSetMinimumShouldMatch
impl Debug for TermsSetMinimumShouldMatch
Source§impl<'a> From<&'a str> for TermsSetMinimumShouldMatch
impl<'a> From<&'a str> for TermsSetMinimumShouldMatch
Source§impl From<String> for TermsSetMinimumShouldMatch
impl From<String> for TermsSetMinimumShouldMatch
Source§impl From<TermsSetScript> for TermsSetMinimumShouldMatch
impl From<TermsSetScript> for TermsSetMinimumShouldMatch
Source§fn from(script: TermsSetScript) -> Self
fn from(script: TermsSetScript) -> Self
Converts to this type from the input type.
impl Eq for TermsSetMinimumShouldMatch
impl StructuralPartialEq for TermsSetMinimumShouldMatch
Auto Trait Implementations§
impl Freeze for TermsSetMinimumShouldMatch
impl RefUnwindSafe for TermsSetMinimumShouldMatch
impl Send for TermsSetMinimumShouldMatch
impl Sync for TermsSetMinimumShouldMatch
impl Unpin for TermsSetMinimumShouldMatch
impl UnwindSafe for TermsSetMinimumShouldMatch
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