Struct elasticsearch_dsl::search::queries::MatchNoneQuery
source · [−]pub struct MatchNoneQuery { /* private fields */ }
Expand description
This is the inverse of the match_all
query, which matches no documents.
To create match_none query:
Query::match_none()
.boost(2)
.name("matches_nothing");
https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-match-all-query.html
Implementations
sourceimpl MatchNoneQuery
impl MatchNoneQuery
sourcepub fn boost<B>(self, boost: B) -> Self where
B: TryInto<Boost>,
pub fn boost<B>(self, boost: B) -> Self where
B: TryInto<Boost>,
Floating point number used to decrease or increase the
relevance scores
of a query. Defaults to 1.0
.
You can use the boost parameter to adjust relevance scores for searches containing two or more queries.
Boost values are relative to the default value of 1.0
.
A boost value between 0 and 1.0
decreases the relevance score.
A value greater than 1.0
increases the relevance score.
Trait Implementations
sourceimpl Clone for MatchNoneQuery
impl Clone for MatchNoneQuery
sourcefn clone(&self) -> MatchNoneQuery
fn clone(&self) -> MatchNoneQuery
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 MatchNoneQuery
impl Debug for MatchNoneQuery
sourceimpl Default for MatchNoneQuery
impl Default for MatchNoneQuery
sourcefn default() -> MatchNoneQuery
fn default() -> MatchNoneQuery
Returns the “default value” for a type. Read more
sourceimpl From<MatchNoneQuery> for Query
impl From<MatchNoneQuery> for Query
sourcefn from(q: MatchNoneQuery) -> Self
fn from(q: MatchNoneQuery) -> Self
Converts to this type from the input type.
sourceimpl From<MatchNoneQuery> for Option<Query>
impl From<MatchNoneQuery> for Option<Query>
sourcefn from(q: MatchNoneQuery) -> Self
fn from(q: MatchNoneQuery) -> Self
Converts to this type from the input type.
sourceimpl From<MatchNoneQuery> for Queries
impl From<MatchNoneQuery> for Queries
sourcefn from(q: MatchNoneQuery) -> Self
fn from(q: MatchNoneQuery) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<MatchNoneQuery> for MatchNoneQuery
impl PartialEq<MatchNoneQuery> for MatchNoneQuery
sourcefn eq(&self, other: &MatchNoneQuery) -> bool
fn eq(&self, other: &MatchNoneQuery) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &MatchNoneQuery) -> bool
fn ne(&self, other: &MatchNoneQuery) -> bool
This method tests for !=
.
sourceimpl PartialEq<MatchNoneQuery> for Query
impl PartialEq<MatchNoneQuery> for Query
sourceimpl PartialEq<Query> for MatchNoneQuery
impl PartialEq<Query> for MatchNoneQuery
sourceimpl Serialize for MatchNoneQuery
impl Serialize for MatchNoneQuery
impl StructuralPartialEq for MatchNoneQuery
Auto Trait Implementations
impl RefUnwindSafe for MatchNoneQuery
impl Send for MatchNoneQuery
impl Sync for MatchNoneQuery
impl Unpin for MatchNoneQuery
impl UnwindSafe for MatchNoneQuery
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