Struct elasticsearch_dsl::search::queries::joining::ParentIdQuery
source · pub struct ParentIdQuery { /* private fields */ }
Expand description
Returns child documents joined to a specific parent document. You can use a join field mapping to create parent-child relationships between documents in the same index.
To create parent_id query:
Query::parent_id("test", 1);
https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-ParentId-query.html
Implementations§
source§impl ParentIdQuery
impl ParentIdQuery
pub fn serialize<__S>(
__self: &ParentIdQuery,
__serializer: __S
) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
source§impl ParentIdQuery
impl ParentIdQuery
sourcepub fn ignore_unmapped(self, ignore_unmapped: bool) -> Self
pub fn ignore_unmapped(self, ignore_unmapped: bool) -> Self
Indicates whether to ignore an unmapped type
and not return any documents instead of an
error. Defaults to false
.
If false
, Elasticsearch returns an error if the type
is unmapped.
You can use this parameter to query multiple indices that may not contain the type
.
sourcepub fn boost<T>(self, boost: T) -> Selfwhere
T: AsPrimitive<f32>,
pub fn boost<T>(self, boost: T) -> Selfwhere
T: AsPrimitive<f32>,
Floating point number used to decrease or increase the
relevance scores
of a query. Defaults to 1.0
.
You can use the boost parameter to adjust relevance scores for searches containing two or more queries.
Boost values are relative to the default value of 1.0
.
A boost value between 0 and 1.0
decreases the relevance score.
A value greater than 1.0
increases the relevance score.
Trait Implementations§
source§impl Clone for ParentIdQuery
impl Clone for ParentIdQuery
source§fn clone(&self) -> ParentIdQuery
fn clone(&self) -> ParentIdQuery
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ParentIdQuery
impl Debug for ParentIdQuery
source§impl From<ParentIdQuery> for Option<Query>
impl From<ParentIdQuery> for Option<Query>
source§fn from(q: ParentIdQuery) -> Self
fn from(q: ParentIdQuery) -> Self
source§impl From<ParentIdQuery> for Query
impl From<ParentIdQuery> for Query
source§fn from(q: ParentIdQuery) -> Self
fn from(q: ParentIdQuery) -> Self
source§impl IntoIterator for ParentIdQuery
impl IntoIterator for ParentIdQuery
§type Item = ParentIdQuery
type Item = ParentIdQuery
§type IntoIter = IntoIter<<ParentIdQuery as IntoIterator>::Item>
type IntoIter = IntoIter<<ParentIdQuery as IntoIterator>::Item>
source§impl PartialEq<ParentIdQuery> for Query
impl PartialEq<ParentIdQuery> for Query
source§fn eq(&self, other: &ParentIdQuery) -> bool
fn eq(&self, other: &ParentIdQuery) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<Query> for ParentIdQuery
impl PartialEq<Query> for ParentIdQuery
source§impl PartialEq for ParentIdQuery
impl PartialEq for ParentIdQuery
source§fn eq(&self, other: &ParentIdQuery) -> bool
fn eq(&self, other: &ParentIdQuery) -> bool
self
and other
values to be equal, and is used
by ==
.