#[non_exhaustive]pub struct MatchPhraseQuery {
pub analyzer: Option<String>,
pub boost: Option<f32>,
pub field: Option<String>,
pub match_phrase: String,
}Expand description
A full-text match phrase query that matches an exact phrase in the index.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.analyzer: Option<String>The analyzer to use for this query.
boost: Option<f32>The boost value for this query.
field: Option<String>The field to query.
match_phrase: StringThe exact phrase to match.
Implementations§
Trait Implementations§
Source§impl Clone for MatchPhraseQuery
impl Clone for MatchPhraseQuery
Source§fn clone(&self) -> MatchPhraseQuery
fn clone(&self) -> MatchPhraseQuery
Returns a duplicate 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 MatchPhraseQuery
impl Debug for MatchPhraseQuery
Source§impl From<MatchPhraseQuery> for MatchPhraseQuery
impl From<MatchPhraseQuery> for MatchPhraseQuery
Source§fn from(query: MatchPhraseQuery) -> Self
fn from(query: MatchPhraseQuery) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MatchPhraseQuery
impl PartialEq for MatchPhraseQuery
impl StructuralPartialEq for MatchPhraseQuery
Auto Trait Implementations§
impl Freeze for MatchPhraseQuery
impl RefUnwindSafe for MatchPhraseQuery
impl Send for MatchPhraseQuery
impl Sync for MatchPhraseQuery
impl Unpin for MatchPhraseQuery
impl UnsafeUnpin for MatchPhraseQuery
impl UnwindSafe for MatchPhraseQuery
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