pub enum MultiMatchType {
BestFields,
MostFields,
CrossFields,
Phrase,
PhrasePrefix,
BoolPrefix,
}Expand description
The scoring type of a multi_match.
Variants§
BestFields
Score by the single best-matching field (default).
MostFields
Sum the scores of every matching field.
CrossFields
Treat the fields as one big field, term-centric.
Phrase
Phrase match on each field.
PhrasePrefix
Phrase-prefix match on each field.
BoolPrefix
Bool-prefix match on each field.
Trait Implementations§
Source§impl Clone for MultiMatchType
impl Clone for MultiMatchType
Source§fn clone(&self) -> MultiMatchType
fn clone(&self) -> MultiMatchType
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 moreimpl Copy for MultiMatchType
Auto Trait Implementations§
impl Freeze for MultiMatchType
impl RefUnwindSafe for MultiMatchType
impl Send for MultiMatchType
impl Sync for MultiMatchType
impl Unpin for MultiMatchType
impl UnsafeUnpin for MultiMatchType
impl UnwindSafe for MultiMatchType
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