Struct elasticsearch_dsl::search::queries::span::SpanFieldMaskingQuery
source · pub struct SpanFieldMaskingQuery { /* private fields */ }
Expand description
Wrapper to allow span queries to participate in composite single-field span queries by
lying about their search field. The span field masking query maps to Lucene’s
SpanFieldMaskingQuery
This can be used to support queries like span-near
or span-or
across different fields,
which is not ordinarily permitted.
Span field masking query is invaluable in conjunction with multi-fields when same content is indexed with multiple analyzers. For instance we could index a field with the standard analyzer which breaks text up into words, and again with the english analyzer which stems words into their root form.
Note: as span field masking query returns the masked field, scoring will be done using the norms of the field name supplied. This may lead to unexpected scoring behavior.
Implementations§
source§impl SpanFieldMaskingQuery
impl SpanFieldMaskingQuery
pub fn serialize<__S>(
__self: &SpanFieldMaskingQuery,
__serializer: __S
) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
Trait Implementations§
source§impl Clone for SpanFieldMaskingQuery
impl Clone for SpanFieldMaskingQuery
source§fn clone(&self) -> SpanFieldMaskingQuery
fn clone(&self) -> SpanFieldMaskingQuery
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SpanFieldMaskingQuery
impl Debug for SpanFieldMaskingQuery
source§impl From<SpanFieldMaskingQuery> for Option<Query>
impl From<SpanFieldMaskingQuery> for Option<Query>
source§fn from(q: SpanFieldMaskingQuery) -> Self
fn from(q: SpanFieldMaskingQuery) -> Self
source§impl From<SpanFieldMaskingQuery> for Option<SpanQuery>
impl From<SpanFieldMaskingQuery> for Option<SpanQuery>
source§fn from(q: SpanFieldMaskingQuery) -> Self
fn from(q: SpanFieldMaskingQuery) -> Self
source§impl From<SpanFieldMaskingQuery> for Query
impl From<SpanFieldMaskingQuery> for Query
source§fn from(q: SpanFieldMaskingQuery) -> Self
fn from(q: SpanFieldMaskingQuery) -> Self
source§impl From<SpanFieldMaskingQuery> for SpanQuery
impl From<SpanFieldMaskingQuery> for SpanQuery
source§fn from(q: SpanFieldMaskingQuery) -> Self
fn from(q: SpanFieldMaskingQuery) -> Self
source§impl IntoIterator for SpanFieldMaskingQuery
impl IntoIterator for SpanFieldMaskingQuery
§type Item = SpanFieldMaskingQuery
type Item = SpanFieldMaskingQuery
§type IntoIter = IntoIter<<SpanFieldMaskingQuery as IntoIterator>::Item>
type IntoIter = IntoIter<<SpanFieldMaskingQuery as IntoIterator>::Item>
source§impl PartialEq<Query> for SpanFieldMaskingQuery
impl PartialEq<Query> for SpanFieldMaskingQuery
source§impl PartialEq<SpanFieldMaskingQuery> for Query
impl PartialEq<SpanFieldMaskingQuery> for Query
source§fn eq(&self, other: &SpanFieldMaskingQuery) -> bool
fn eq(&self, other: &SpanFieldMaskingQuery) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<SpanFieldMaskingQuery> for SpanQuery
impl PartialEq<SpanFieldMaskingQuery> for SpanQuery
source§fn eq(&self, other: &SpanFieldMaskingQuery) -> bool
fn eq(&self, other: &SpanFieldMaskingQuery) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<SpanQuery> for SpanFieldMaskingQuery
impl PartialEq<SpanQuery> for SpanFieldMaskingQuery
source§impl PartialEq for SpanFieldMaskingQuery
impl PartialEq for SpanFieldMaskingQuery
source§fn eq(&self, other: &SpanFieldMaskingQuery) -> bool
fn eq(&self, other: &SpanFieldMaskingQuery) -> bool
self
and other
values to be equal, and is used
by ==
.