Struct elasticsearch_dsl::search::queries::full_text::MatchBoolPrefixQuery [−][src]
pub struct MatchBoolPrefixQuery { /* fields omitted */ }Expand description
A match_bool_prefix query analyzes its input and constructs a
bool query from the terms. Each term except the last is used in a
term query. The last term is used in a
prefix query.
To create a MatchBoolPrefix query:
Query::match_bool_prefix("test", "search text")
.boost(2)
.name("test");Implementations
Analyzer
used to convert the text in the query value into tokens. Defaults to the
index-time analyzer
mapped for the <field>. If no analyzer is mapped, the index’s default analyzer is used.
pub fn minimum_should_match(
self,
minimum_should_match: impl Into<MinimumShouldMatch>
) -> Self
pub fn minimum_should_match(
self,
minimum_should_match: impl Into<MinimumShouldMatch>
) -> Self
Minimum number of clauses that must match for a document to be returned.
See the
minimum_should_match parameter
for valid values and more information.
Boolean logic used to interpret text in the query value
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
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 MatchBoolPrefixQuery
impl Send for MatchBoolPrefixQuery
impl Sync for MatchBoolPrefixQuery
impl Unpin for MatchBoolPrefixQuery
impl UnwindSafe for MatchBoolPrefixQuery
Blanket Implementations
Mutably borrows from an owned value. Read more