Struct elasticsearch_dsl::search::queries::MatchNoneQuery [−][src]
pub struct MatchNoneQuery { /* fields omitted */ }
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
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.
You can use named queries to track which queries matched
returned documents. If named queries are used, the response
includes a matched_queries
property for each hit.
Trait Implementations
Returns the “default value” for a type. Read more
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
Mutably borrows from an owned value. Read more