Struct rs_es::operations::search::aggregations::Aggregations
[−]
[src]
pub struct Aggregations<'a>(_);
The set of aggregations
There are many ways of creating aggregations, either standalone or via a conversion trait
Methods
impl<'a> Aggregations<'a>
fn new() -> Aggregations<'a>
Create an empty-set of aggregations, individual aggregations should be
added via the add
method
Examples
use rs_es::operations::search::aggregations::{Aggregations, Min}; let mut aggs = Aggregations::new(); aggs.add("agg_name", Min::new("field_name"));
fn add<A: Into<Aggregation<'a>>>(&mut self, key: &'a str, val: A)
Add an aggregation to the set of aggregations