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.
https://www.elastic.co/guide/en/opensearch/reference/current/query-dsl-span-field-masking-query.html
Implementations§
Source§impl<'de> SpanFieldMaskingQuery
impl<'de> SpanFieldMaskingQuery
pub fn deserialize<__D>(
__deserializer: __D,
) -> Result<SpanFieldMaskingQuery, __D::Error>where
__D: Deserializer<'de>,
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 (const: unstable) · 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<'de> Deserialize<'de> for SpanFieldMaskingQuery
impl<'de> Deserialize<'de> for SpanFieldMaskingQuery
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Source§impl From<SpanFieldMaskingQuery> for SpanQuery
impl From<SpanFieldMaskingQuery> for SpanQuery
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 Option<Query>
impl From<SpanFieldMaskingQuery> for Option<Query>
Source§fn from(q: SpanFieldMaskingQuery) -> Self
fn from(q: SpanFieldMaskingQuery) -> Self
Source§impl IntoIterator for SpanFieldMaskingQuery
impl IntoIterator 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 ==.Source§impl PartialEq<Query> for SpanFieldMaskingQuery
impl PartialEq<Query> for SpanFieldMaskingQuery
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<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 ==.