Struct elastiql::search::query::TermQuery [−][src]
Expand description
A Term query returns documents that contain an exact term in a provided field.
Fields
field: String
The name of the field to query.
value: String
A list of terms you wish to find in the provided field. To return a document, one or more terms must exactly match a field value, including whitespace and capitalization.
Although this field is a String
, it will match numerical
fields; e.g.
"1.2"
will match fields containing the floating point value 1.2
.
boost: Option<f64>
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.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TermQuery
impl UnwindSafe for TermQuery
Blanket Implementations
Mutably borrows from an owned value. Read more