Enum elasticsearch_dsl::search::aggregations::Aggregation
source · pub enum Aggregation {
Show 13 variants
Terms(TermsAggregation),
TopHits(TopHitsAggregation),
Cardinality(CardinalityAggregation),
Avg(AvgAggregation),
Max(MaxAggregation),
Min(MinAggregation),
Sum(SumAggregation),
Rate(RateAggregation),
Sampler(SamplerAggregation),
Filter(FilterAggregation),
DiversifiedSampler(DiversifiedSamplerAggregation),
Boxplot(BoxplotAggregation),
DateHistogram(DateHistogramAggregation),
}
Expand description
A container enum for supported Elasticsearch query types
Variants§
Terms(TermsAggregation)
TopHits(TopHitsAggregation)
Cardinality(CardinalityAggregation)
Avg(AvgAggregation)
Max(MaxAggregation)
Min(MinAggregation)
Sum(SumAggregation)
Rate(RateAggregation)
Sampler(SamplerAggregation)
Filter(FilterAggregation)
DiversifiedSampler(DiversifiedSamplerAggregation)
Boxplot(BoxplotAggregation)
DateHistogram(DateHistogramAggregation)
Implementations§
source§impl Aggregation
impl Aggregation
sourcepub fn date_histogram<T>(field: T) -> DateHistogramAggregationwhere
T: ToString,
pub fn date_histogram<T>(field: T) -> DateHistogramAggregationwhere
T: ToString,
Creates an instance of DateHistogramAggregation
field
- field to group by
source§impl Aggregation
impl Aggregation
sourcepub fn diversified_sampler<T>(field: T) -> DiversifiedSamplerAggregationwhere
T: ToString,
pub fn diversified_sampler<T>(field: T) -> DiversifiedSamplerAggregationwhere
T: ToString,
Creates an instance of DiversifiedSamplerAggregation
source§impl Aggregation
impl Aggregation
sourcepub fn filter<Q>(query: Q) -> FilterAggregation
pub fn filter<Q>(query: Q) -> FilterAggregation
Creates an instance of FilterAggregation
query
- query to filter by
source§impl Aggregation
impl Aggregation
sourcepub fn sampler() -> SamplerAggregation
pub fn sampler() -> SamplerAggregation
Creates an instance of SamplerAggregation
source§impl Aggregation
impl Aggregation
sourcepub fn terms<T>(field: T) -> TermsAggregationwhere
T: ToString,
pub fn terms<T>(field: T) -> TermsAggregationwhere
T: ToString,
Creates an instance of TermsAggregation
field
- field to group by
source§impl Aggregation
impl Aggregation
sourcepub fn avg<T>(field: T) -> AvgAggregationwhere
T: ToString,
pub fn avg<T>(field: T) -> AvgAggregationwhere
T: ToString,
Creates an instance of AvgAggregation
field
- field to aggregate
source§impl Aggregation
impl Aggregation
sourcepub fn boxplot<T>(field: T) -> BoxplotAggregationwhere
T: ToString,
pub fn boxplot<T>(field: T) -> BoxplotAggregationwhere
T: ToString,
Creates an instance of BoxplotAggregation
field
- field to aggregate
source§impl Aggregation
impl Aggregation
sourcepub fn cardinality<T>(field: T) -> CardinalityAggregationwhere
T: ToString,
pub fn cardinality<T>(field: T) -> CardinalityAggregationwhere
T: ToString,
Creates an instance of CardinalityAggregation
field
- field to aggregate
source§impl Aggregation
impl Aggregation
sourcepub fn max<T>(field: T) -> MaxAggregationwhere
T: ToString,
pub fn max<T>(field: T) -> MaxAggregationwhere
T: ToString,
Creates an instance of MaxAggregation
field
- field to aggregate
sourcepub fn max_script(script: Script) -> MaxAggregation
pub fn max_script(script: Script) -> MaxAggregation
Creates an instance of MaxAggregation
script
- script to aggregate
source§impl Aggregation
impl Aggregation
sourcepub fn min<T>(field: T) -> MinAggregationwhere
T: ToString,
pub fn min<T>(field: T) -> MinAggregationwhere
T: ToString,
Creates an instance of MinAggregation
field
- field to aggregate
sourcepub fn min_script(script: Script) -> MinAggregation
pub fn min_script(script: Script) -> MinAggregation
Creates an instance of MinAggregation
script
- script to aggregate
source§impl Aggregation
impl Aggregation
sourcepub fn rate() -> RateAggregation
pub fn rate() -> RateAggregation
Creates an instance of RateAggregation
source§impl Aggregation
impl Aggregation
sourcepub fn sum<T>(field: T) -> SumAggregationwhere
T: ToString,
pub fn sum<T>(field: T) -> SumAggregationwhere
T: ToString,
Creates an instance of SumAggregation
field
- field to aggregate
sourcepub fn sum_script(script: Script) -> SumAggregation
pub fn sum_script(script: Script) -> SumAggregation
Creates an instance of SumAggregation
script
- script to aggregate
source§impl Aggregation
impl Aggregation
sourcepub fn top_hits() -> TopHitsAggregation
pub fn top_hits() -> TopHitsAggregation
Creates an instance of TopHitsAggregation
Trait Implementations§
source§impl Clone for Aggregation
impl Clone for Aggregation
source§fn clone(&self) -> Aggregation
fn clone(&self) -> Aggregation
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 Aggregation
impl Debug for Aggregation
source§impl From<AvgAggregation> for Aggregation
impl From<AvgAggregation> for Aggregation
source§fn from(q: AvgAggregation) -> Self
fn from(q: AvgAggregation) -> Self
Converts to this type from the input type.
source§impl From<BoxplotAggregation> for Aggregation
impl From<BoxplotAggregation> for Aggregation
source§fn from(q: BoxplotAggregation) -> Self
fn from(q: BoxplotAggregation) -> Self
Converts to this type from the input type.
source§impl From<CardinalityAggregation> for Aggregation
impl From<CardinalityAggregation> for Aggregation
source§fn from(q: CardinalityAggregation) -> Self
fn from(q: CardinalityAggregation) -> Self
Converts to this type from the input type.
source§impl From<DateHistogramAggregation> for Aggregation
impl From<DateHistogramAggregation> for Aggregation
source§fn from(q: DateHistogramAggregation) -> Self
fn from(q: DateHistogramAggregation) -> Self
Converts to this type from the input type.
source§impl From<DiversifiedSamplerAggregation> for Aggregation
impl From<DiversifiedSamplerAggregation> for Aggregation
source§fn from(q: DiversifiedSamplerAggregation) -> Self
fn from(q: DiversifiedSamplerAggregation) -> Self
Converts to this type from the input type.
source§impl From<FilterAggregation> for Aggregation
impl From<FilterAggregation> for Aggregation
source§fn from(q: FilterAggregation) -> Self
fn from(q: FilterAggregation) -> Self
Converts to this type from the input type.
source§impl From<MaxAggregation> for Aggregation
impl From<MaxAggregation> for Aggregation
source§fn from(q: MaxAggregation) -> Self
fn from(q: MaxAggregation) -> Self
Converts to this type from the input type.
source§impl From<MinAggregation> for Aggregation
impl From<MinAggregation> for Aggregation
source§fn from(q: MinAggregation) -> Self
fn from(q: MinAggregation) -> Self
Converts to this type from the input type.
source§impl From<RateAggregation> for Aggregation
impl From<RateAggregation> for Aggregation
source§fn from(q: RateAggregation) -> Self
fn from(q: RateAggregation) -> Self
Converts to this type from the input type.
source§impl From<SamplerAggregation> for Aggregation
impl From<SamplerAggregation> for Aggregation
source§fn from(q: SamplerAggregation) -> Self
fn from(q: SamplerAggregation) -> Self
Converts to this type from the input type.
source§impl From<SumAggregation> for Aggregation
impl From<SumAggregation> for Aggregation
source§fn from(q: SumAggregation) -> Self
fn from(q: SumAggregation) -> Self
Converts to this type from the input type.
source§impl From<TermsAggregation> for Aggregation
impl From<TermsAggregation> for Aggregation
source§fn from(q: TermsAggregation) -> Self
fn from(q: TermsAggregation) -> Self
Converts to this type from the input type.
source§impl From<TopHitsAggregation> for Aggregation
impl From<TopHitsAggregation> for Aggregation
source§fn from(q: TopHitsAggregation) -> Self
fn from(q: TopHitsAggregation) -> Self
Converts to this type from the input type.
source§impl PartialEq for Aggregation
impl PartialEq for Aggregation
source§fn eq(&self, other: &Aggregation) -> bool
fn eq(&self, other: &Aggregation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Aggregation
impl Serialize for Aggregation
impl StructuralPartialEq for Aggregation
Auto Trait Implementations§
impl RefUnwindSafe for Aggregation
impl Send for Aggregation
impl Sync for Aggregation
impl Unpin for Aggregation
impl UnwindSafe for Aggregation
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