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
pub fn serialize<__S>(
__self: &SpanNotQuery,
__serializer: __S,
) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
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
Source§impl PartialEq<Query> for SpanNotQuery
impl PartialEq<Query> for SpanNotQuery
Source§impl PartialEq<SpanNotQuery> for Query
impl PartialEq<SpanNotQuery> for Query
Source§impl PartialEq<SpanNotQuery> for SpanQuery
impl PartialEq<SpanNotQuery> for SpanQuery
Source§impl PartialEq<SpanQuery> for SpanNotQuery
impl PartialEq<SpanQuery> for SpanNotQuery
Source§impl PartialEq for SpanNotQuery
impl PartialEq for SpanNotQuery
Source§impl Serialize for SpanNotQuery
impl Serialize for SpanNotQuery
impl StructuralPartialEq for SpanNotQuery
Auto Trait Implementations§
impl Freeze for SpanNotQuery
impl RefUnwindSafe for SpanNotQuery
impl Send for SpanNotQuery
impl Sync for SpanNotQuery
impl Unpin for SpanNotQuery
impl UnwindSafe for SpanNotQuery
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more