Struct elasticsearch_dsl::search::queries::span::SpanNotQuery
source · pub struct SpanNotQuery { /* private fields */ }
Expand description
Removes matches which overlap with another span query or which are within x tokens before
(controlled by the parameter pre
) or y tokens after (controlled by the parameter post
)
another SpanQuery. The span not query maps to Lucene SpanNotQuery
.
The include
and exclude
clauses can be any span type query. The include
clause is the
span query whose matches are filtered, and the exclude
clause is the span query whose matches
must not overlap those returned.
https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-span-not-query.html
Implementations§
source§impl SpanNotQuery
impl SpanNotQuery
sourcepub fn dist(self, dist: i32) -> Self
pub fn dist(self, dist: i32) -> Self
If set the amount of tokens from within the include span can’t have overlap with the exclude span.
Equivalent of setting both pre
and post
.
Trait Implementations§
source§impl Clone for SpanNotQuery
impl Clone for SpanNotQuery
source§fn clone(&self) -> SpanNotQuery
fn clone(&self) -> SpanNotQuery
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 SpanNotQuery
impl Debug for SpanNotQuery
source§impl From<SpanNotQuery> for Option<Query>
impl From<SpanNotQuery> for Option<Query>
source§fn from(q: SpanNotQuery) -> Self
fn from(q: SpanNotQuery) -> Self
Converts to this type from the input type.
source§impl From<SpanNotQuery> for Option<SpanQuery>
impl From<SpanNotQuery> for Option<SpanQuery>
source§fn from(q: SpanNotQuery) -> Self
fn from(q: SpanNotQuery) -> Self
Converts to this type from the input type.
source§impl From<SpanNotQuery> for Query
impl From<SpanNotQuery> for Query
source§fn from(q: SpanNotQuery) -> Self
fn from(q: SpanNotQuery) -> Self
Converts to this type from the input type.
source§impl From<SpanNotQuery> for SpanQuery
impl From<SpanNotQuery> for SpanQuery
source§fn from(q: SpanNotQuery) -> Self
fn from(q: SpanNotQuery) -> Self
Converts to this type from the input type.
source§impl IntoIterator for SpanNotQuery
impl IntoIterator for SpanNotQuery
§type Item = SpanNotQuery
type Item = SpanNotQuery
The type of the elements being iterated over.
§type IntoIter = IntoIter<<SpanNotQuery as IntoIterator>::Item>
type IntoIter = IntoIter<<SpanNotQuery as IntoIterator>::Item>
Which kind of iterator are we turning this into?