Struct elasticsearch_dsl::search::queries::full_text::MatchPhrasePrefixQuery [−][src]
pub struct MatchPhrasePrefixQuery { /* fields omitted */ }Expand description
Returns documents that contain the words of a provided text, in the same order as provided. The last term of the provided text is treated as a prefix, matching any words that begin with that term.
To create a MatchPhrasePrefix query:
Query::match_phrase_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.
Maximum number of terms to which the query will expand.
Defaults to 50.
The maximum number of intervening unmatched positions, as well as whether matches are required to be in-order.
Indicates whether no documents are returned if the analyzer removes
all tokens, such as when using a stop filter.
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 MatchPhrasePrefixQuery
impl Send for MatchPhrasePrefixQuery
impl Sync for MatchPhrasePrefixQuery
impl Unpin for MatchPhrasePrefixQuery
impl UnwindSafe for MatchPhrasePrefixQuery
Blanket Implementations
Mutably borrows from an owned value. Read more