Every object is as close to documentation as possible. Also reference provided in doc blocks where possible. Like this
Every aggregation object implements \Spameri\ElasticQuery\Aggregation\LeafAggregationInterface and is capable of converting to array.
AggregationCollection is also LeafAggregationInterface, so you can nest as you need.
- Class
\Spameri\ElasticQuery\Aggregation\Term - Documentation
- Implementation
- Class
\Spameri\ElasticQuery\Aggregation\Histogram - Documentation
- Implementation
- Class
\Spameri\ElasticQuery\Aggregation\Range - Documentation
- Implementation
- Class
\Spameri\ElasticQuery\Aggregation\AggregationCollection - Implementation
- Top level aggregations.
- Class
\Spameri\ElasticQuery\Aggregation\LeafAggregationCollection - Implementation
- Nested aggregations collection.