Struct elasticsearch_dsl::search::queries::span::SpanTermQuery
source · pub struct SpanTermQuery { /* private fields */ }
Expand description
Matches spans containing a term. The span term query maps to Lucene SpanTermQuery
.
https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-span-term-query.html
Implementations§
source§impl SpanTermQuery
impl SpanTermQuery
sourcepub fn boost<T>(self, boost: T) -> Selfwhere
T: AsPrimitive<f32>,
pub fn boost<T>(self, boost: T) -> Selfwhere
T: AsPrimitive<f32>,
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§
source§impl Clone for SpanTermQuery
impl Clone for SpanTermQuery
source§fn clone(&self) -> SpanTermQuery
fn clone(&self) -> SpanTermQuery
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SpanTermQuery
impl Debug for SpanTermQuery
source§impl From<SpanTermQuery> for Option<Query>
impl From<SpanTermQuery> for Option<Query>
source§fn from(q: SpanTermQuery) -> Self
fn from(q: SpanTermQuery) -> Self
Converts to this type from the input type.
source§impl From<SpanTermQuery> for Option<SpanQuery>
impl From<SpanTermQuery> for Option<SpanQuery>
source§fn from(q: SpanTermQuery) -> Self
fn from(q: SpanTermQuery) -> Self
Converts to this type from the input type.
source§impl From<SpanTermQuery> for Query
impl From<SpanTermQuery> for Query
source§fn from(q: SpanTermQuery) -> Self
fn from(q: SpanTermQuery) -> Self
Converts to this type from the input type.
source§impl From<SpanTermQuery> for SpanQuery
impl From<SpanTermQuery> for SpanQuery
source§fn from(q: SpanTermQuery) -> Self
fn from(q: SpanTermQuery) -> Self
Converts to this type from the input type.
source§impl IntoIterator for SpanTermQuery
impl IntoIterator for SpanTermQuery
§type Item = SpanTermQuery
type Item = SpanTermQuery
The type of the elements being iterated over.
§type IntoIter = IntoIter<<SpanTermQuery as IntoIterator>::Item>
type IntoIter = IntoIter<<SpanTermQuery as IntoIterator>::Item>
Which kind of iterator are we turning this into?