NAME
Data::AnyXfer::Elastic::Role::BucketSimplifier - simplify buckets
SYNOPSIS
package MyPackage;
use Moo;
use MooX::Types::MooseLike::Base qw(:all);
with 'Data::AnyXfer::Elastic::Role::BucketSimplifier';
DESCRIPTION
This role provides a method for simplifying aggregated results.
Buckets are changed to hash references, where the keys are the keys to the bucket items.
ATTRIBUTES
aggregations_key
The top-level hash key that contains aggregated results. Defaults to "aggreations".
METHODS
simplify_bucket
$data = $self->simplify_bucket( $res );
COPYRIGHT
This software is copyright (c) 2019, Anthony Lucas.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.