Struct elasticsearch_dsl::search::queries::span::SpanNearQuery
source · pub struct SpanNearQuery { /* private fields */ }
Expand description
Matches spans which are near one another. One can specify slop, the maximum number of
intervening unmatched positions, as well as whether matches are required to be in-order. The
span near query maps to Lucene SpanNearQuery
.
The clauses
element is a list of one or more other span type queries and the slop
controls
the maximum number of intervening unmatched positions permitted.
https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-span-near-query.html
Implementations§
source§impl SpanNearQuery
impl SpanNearQuery
pub fn serialize<__S>(
__self: &SpanNearQuery,
__serializer: __S
) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
Trait Implementations§
source§impl Clone for SpanNearQuery
impl Clone for SpanNearQuery
source§fn clone(&self) -> SpanNearQuery
fn clone(&self) -> SpanNearQuery
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 SpanNearQuery
impl Debug for SpanNearQuery
source§impl From<SpanNearQuery> for Option<Query>
impl From<SpanNearQuery> for Option<Query>
source§fn from(q: SpanNearQuery) -> Self
fn from(q: SpanNearQuery) -> Self
Converts to this type from the input type.
source§impl From<SpanNearQuery> for Option<SpanQuery>
impl From<SpanNearQuery> for Option<SpanQuery>
source§fn from(q: SpanNearQuery) -> Self
fn from(q: SpanNearQuery) -> Self
Converts to this type from the input type.
source§impl From<SpanNearQuery> for Query
impl From<SpanNearQuery> for Query
source§fn from(q: SpanNearQuery) -> Self
fn from(q: SpanNearQuery) -> Self
Converts to this type from the input type.
source§impl From<SpanNearQuery> for SpanQuery
impl From<SpanNearQuery> for SpanQuery
source§fn from(q: SpanNearQuery) -> Self
fn from(q: SpanNearQuery) -> Self
Converts to this type from the input type.
source§impl IntoIterator for SpanNearQuery
impl IntoIterator for SpanNearQuery
§type Item = SpanNearQuery
type Item = SpanNearQuery
The type of the elements being iterated over.
§type IntoIter = IntoIter<<SpanNearQuery as IntoIterator>::Item>
type IntoIter = IntoIter<<SpanNearQuery as IntoIterator>::Item>
Which kind of iterator are we turning this into?
source§impl PartialEq<Query> for SpanNearQuery
impl PartialEq<Query> for SpanNearQuery
source§impl PartialEq<SpanNearQuery> for Query
impl PartialEq<SpanNearQuery> for Query
source§fn eq(&self, other: &SpanNearQuery) -> bool
fn eq(&self, other: &SpanNearQuery) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<SpanNearQuery> for SpanQuery
impl PartialEq<SpanNearQuery> for SpanQuery
source§fn eq(&self, other: &SpanNearQuery) -> bool
fn eq(&self, other: &SpanNearQuery) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<SpanQuery> for SpanNearQuery
impl PartialEq<SpanQuery> for SpanNearQuery
source§impl PartialEq for SpanNearQuery
impl PartialEq for SpanNearQuery
source§fn eq(&self, other: &SpanNearQuery) -> bool
fn eq(&self, other: &SpanNearQuery) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SpanNearQuery
impl Serialize for SpanNearQuery
impl StructuralPartialEq for SpanNearQuery
Auto Trait Implementations§
impl RefUnwindSafe for SpanNearQuery
impl Send for SpanNearQuery
impl Sync for SpanNearQuery
impl Unpin for SpanNearQuery
impl UnwindSafe for SpanNearQuery
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