Enum elasticsearch_dsl::search::aggregations::Aggregation [−][src]
pub enum Aggregation {
Terms(TermsAggregation),
TopHits(TopHitsAggregation),
Cardinality(CardinalityAggregation),
Avg(AvgAggregation),
Max(MaxAggregation),
Min(MinAggregation),
Sum(SumAggregation),
Rate(RateAggregation),
}
Expand description
A container enum for supported Elasticsearch query types
Variants
Terms(TermsAggregation)
Tuple Fields
TopHits(TopHitsAggregation)
Tuple Fields
Cardinality(CardinalityAggregation)
Tuple Fields
Avg(AvgAggregation)
Tuple Fields
Max(MaxAggregation)
Tuple Fields
Min(MinAggregation)
Tuple Fields
Sum(SumAggregation)
Tuple Fields
Rate(RateAggregation)
Tuple Fields
Implementations
Creates an instance of TermsAggregation
name
- name of the aggregationfield
- field to group by
Creates an instance of AvgAggregation
name
- name of the aggregationfield
- field to aggregate
Creates an instance of BoxplotAggregation
name
- name of the aggregationfield
- field to aggregate
pub fn cardinality(
name: impl Into<String>,
field: impl Into<String>
) -> CardinalityAggregation
pub fn cardinality(
name: impl Into<String>,
field: impl Into<String>
) -> CardinalityAggregation
Creates an instance of CardinalityAggregation
name
- name of the aggregationfield
- field to aggregate
Creates an instance of MaxAggregation
name
- name of the aggregationfield
- field to aggregate
Creates an instance of MinAggregation
name
- name of the aggregationfield
- field to aggregate
Creates an instance of RateAggregation
name
- name of the aggregation
Creates an instance of SumAggregation
name
- name of the aggregationfield
- field to aggregate
Creates an instance of TopHitsAggregation
name
- name of the aggregation
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
Mutably borrows from an owned value. Read more