pub enum TextQueryType {
BestFields,
MostFields,
CrossFields,
Phrase,
PhrasePrefix,
BoolPrefix,
}Expand description
The way the multi_match query is executed internally.
Variants§
BestFields
Finds documents which match any field, but uses the _score from the
best field. See
best_fields.
MostFields
Finds documents which match any field and combines the _score from
each field. See
most_fields.
CrossFields
Treats fields with the same analyzer as though they were one big
field. Looks for each word in any field. See
cross_fields.
Phrase
Runs a match_phrase query on each field and uses the _score from
the best field. See
phrase and phrase_prefix.
PhrasePrefix
Runs a match_phrase_prefix query on each field and uses the _score
from the best field. See
phrase and phrase_prefix.
BoolPrefix
Creates a match_bool_prefix query on each field and combines the
_score from each field. See
bool_prefix.
Trait Implementations§
Source§impl Clone for TextQueryType
impl Clone for TextQueryType
Source§fn clone(&self) -> TextQueryType
fn clone(&self) -> TextQueryType
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 TextQueryType
Source§impl Debug for TextQueryType
impl Debug for TextQueryType
Source§impl<'de> Deserialize<'de> for TextQueryType
impl<'de> Deserialize<'de> for TextQueryType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TextQueryType
Source§impl PartialEq for TextQueryType
impl PartialEq for TextQueryType
Source§fn eq(&self, other: &TextQueryType) -> bool
fn eq(&self, other: &TextQueryType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TextQueryType
impl Serialize for TextQueryType
impl StructuralPartialEq for TextQueryType
Auto Trait Implementations§
impl Freeze for TextQueryType
impl RefUnwindSafe for TextQueryType
impl Send for TextQueryType
impl Sync for TextQueryType
impl Unpin for TextQueryType
impl UnsafeUnpin for TextQueryType
impl UnwindSafe for TextQueryType
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