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),
}
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)
Implementations
sourceimpl Aggregation
impl Aggregation
sourcepub fn diversified_sampler(
field: impl Into<String>
) -> DiversifiedSamplerAggregation
pub fn diversified_sampler(
field: impl Into<String>
) -> DiversifiedSamplerAggregation
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(field: impl Into<String>) -> TermsAggregation
pub fn terms(field: impl Into<String>) -> TermsAggregation
Creates an instance of TermsAggregation
field
- field to group by
sourceimpl Aggregation
impl Aggregation
sourcepub fn avg(field: impl Into<String>) -> AvgAggregation
pub fn avg(field: impl Into<String>) -> AvgAggregation
Creates an instance of AvgAggregation
field
- field to aggregate
sourceimpl Aggregation
impl Aggregation
sourcepub fn boxplot(field: impl Into<String>) -> BoxplotAggregation
pub fn boxplot(field: impl Into<String>) -> BoxplotAggregation
Creates an instance of BoxplotAggregation
field
- field to aggregate
sourceimpl Aggregation
impl Aggregation
sourcepub fn cardinality(field: impl Into<String>) -> CardinalityAggregation
pub fn cardinality(field: impl Into<String>) -> CardinalityAggregation
Creates an instance of CardinalityAggregation
field
- field to aggregate
sourceimpl Aggregation
impl Aggregation
sourcepub fn max(field: impl Into<String>) -> MaxAggregation
pub fn max(field: impl Into<String>) -> MaxAggregation
Creates an instance of MaxAggregation
field
- field to aggregate
sourceimpl Aggregation
impl Aggregation
sourcepub fn min(field: impl Into<String>) -> MinAggregation
pub fn min(field: impl Into<String>) -> MinAggregation
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(field: impl Into<String>) -> SumAggregation
pub fn sum(field: impl Into<String>) -> SumAggregation
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<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