From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more

NAME

Data::AnyXfer::Elastic::Role::BucketSimplifier - simplify buckets

SYNOPSIS

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.