Enum elasticsearch_dsl::search::aggregations::Aggregation
source · [−]pub enum Aggregation {
Terms(TermsAggregation),
TopHits(TopHitsAggregation),
Cardinality(CardinalityAggregation),
Avg(AvgAggregation),
Max(MaxAggregation),
Min(MinAggregation),
Sum(SumAggregation),
Rate(RateAggregation),
Sampler(SamplerAggregation),
Filter(FilterAggregation),
DiversifiedSampler(DiversifiedSamplerAggregation),
Boxplot(BoxplotAggregation),
}
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)
Implementations
sourceimpl Aggregation
impl Aggregation
sourcepub fn diversified_sampler<T>(field: T) -> DiversifiedSamplerAggregation where
T: ToString,
pub fn diversified_sampler<T>(field: T) -> DiversifiedSamplerAggregation where
T: ToString,
Creates an instance of DiversifiedSamplerAggregation
sourceimpl Aggregation
impl Aggregation
sourcepub fn filter<Q>(query: Q) -> FilterAggregation where
Q: Into<Query>,
pub fn filter<Q>(query: Q) -> FilterAggregation where
Q: Into<Query>,
Creates an instance of FilterAggregation
query
- query to filter by
sourceimpl Aggregation
impl Aggregation
sourcepub fn sampler() -> SamplerAggregation
pub fn sampler() -> SamplerAggregation
Creates an instance of SamplerAggregation
sourceimpl Aggregation
impl Aggregation
sourcepub fn terms<T>(field: T) -> TermsAggregation where
T: ToString,
pub fn terms<T>(field: T) -> TermsAggregation where
T: ToString,
Creates an instance of TermsAggregation
field
- field to group by
sourceimpl Aggregation
impl Aggregation
sourcepub fn avg<T>(field: T) -> AvgAggregation where
T: ToString,
pub fn avg<T>(field: T) -> AvgAggregation where
T: ToString,
Creates an instance of AvgAggregation
field
- field to aggregate
sourceimpl Aggregation
impl Aggregation
sourcepub fn boxplot<T>(field: T) -> BoxplotAggregation where
T: ToString,
pub fn boxplot<T>(field: T) -> BoxplotAggregation where
T: ToString,
Creates an instance of BoxplotAggregation
field
- field to aggregate
sourceimpl Aggregation
impl Aggregation
sourcepub fn cardinality<T>(field: T) -> CardinalityAggregation where
T: ToString,
pub fn cardinality<T>(field: T) -> CardinalityAggregation where
T: ToString,
Creates an instance of CardinalityAggregation
field
- field to aggregate
sourceimpl Aggregation
impl Aggregation
sourcepub fn max<T>(field: T) -> MaxAggregation where
T: ToString,
pub fn max<T>(field: T) -> MaxAggregation where
T: ToString,
Creates an instance of MaxAggregation
field
- field to aggregate
sourceimpl Aggregation
impl Aggregation
sourcepub fn min<T>(field: T) -> MinAggregation where
T: ToString,
pub fn min<T>(field: T) -> MinAggregation where
T: ToString,
Creates an instance of MinAggregation
field
- field to aggregate
sourceimpl Aggregation
impl Aggregation
sourcepub fn rate() -> RateAggregation
pub fn rate() -> RateAggregation
Creates an instance of RateAggregation
sourceimpl Aggregation
impl Aggregation
sourcepub fn sum<T>(field: T) -> SumAggregation where
T: ToString,
pub fn sum<T>(field: T) -> SumAggregation where
T: ToString,
Creates an instance of SumAggregation
field
- field to aggregate
sourceimpl Aggregation
impl Aggregation
sourcepub fn top_hits() -> TopHitsAggregation
pub fn top_hits() -> TopHitsAggregation
Creates an instance of TopHitsAggregation
Trait Implementations
sourceimpl Clone for Aggregation
impl Clone for Aggregation
sourcefn clone(&self) -> Aggregation
fn clone(&self) -> Aggregation
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Aggregation
impl Debug for Aggregation
sourceimpl From<AvgAggregation> for Aggregation
impl From<AvgAggregation> for Aggregation
sourcefn from(q: AvgAggregation) -> Self
fn from(q: AvgAggregation) -> Self
Converts to this type from the input type.
sourceimpl From<BoxplotAggregation> for Aggregation
impl From<BoxplotAggregation> for Aggregation
sourcefn from(q: BoxplotAggregation) -> Self
fn from(q: BoxplotAggregation) -> Self
Converts to this type from the input type.
sourceimpl From<CardinalityAggregation> for Aggregation
impl From<CardinalityAggregation> for Aggregation
sourcefn from(q: CardinalityAggregation) -> Self
fn from(q: CardinalityAggregation) -> Self
Converts to this type from the input type.
sourceimpl From<DiversifiedSamplerAggregation> for Aggregation
impl From<DiversifiedSamplerAggregation> for Aggregation
sourcefn from(q: DiversifiedSamplerAggregation) -> Self
fn from(q: DiversifiedSamplerAggregation) -> Self
Converts to this type from the input type.
sourceimpl From<FilterAggregation> for Aggregation
impl From<FilterAggregation> for Aggregation
sourcefn from(q: FilterAggregation) -> Self
fn from(q: FilterAggregation) -> Self
Converts to this type from the input type.
sourceimpl From<MaxAggregation> for Aggregation
impl From<MaxAggregation> for Aggregation
sourcefn from(q: MaxAggregation) -> Self
fn from(q: MaxAggregation) -> Self
Converts to this type from the input type.
sourceimpl From<MinAggregation> for Aggregation
impl From<MinAggregation> for Aggregation
sourcefn from(q: MinAggregation) -> Self
fn from(q: MinAggregation) -> Self
Converts to this type from the input type.
sourceimpl From<RateAggregation> for Aggregation
impl From<RateAggregation> for Aggregation
sourcefn from(q: RateAggregation) -> Self
fn from(q: RateAggregation) -> Self
Converts to this type from the input type.
sourceimpl From<SamplerAggregation> for Aggregation
impl From<SamplerAggregation> for Aggregation
sourcefn from(q: SamplerAggregation) -> Self
fn from(q: SamplerAggregation) -> Self
Converts to this type from the input type.
sourceimpl From<SumAggregation> for Aggregation
impl From<SumAggregation> for Aggregation
sourcefn from(q: SumAggregation) -> Self
fn from(q: SumAggregation) -> Self
Converts to this type from the input type.
sourceimpl From<TermsAggregation> for Aggregation
impl From<TermsAggregation> for Aggregation
sourcefn from(q: TermsAggregation) -> Self
fn from(q: TermsAggregation) -> Self
Converts to this type from the input type.
sourceimpl From<TopHitsAggregation> for Aggregation
impl From<TopHitsAggregation> for Aggregation
sourcefn from(q: TopHitsAggregation) -> Self
fn from(q: TopHitsAggregation) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<Aggregation> for Aggregation
impl PartialEq<Aggregation> for Aggregation
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &Aggregation) -> bool
fn ne(&self, other: &Aggregation) -> bool
This method tests for !=
.
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more