Skip to content

Commit

Permalink
Write tests for NestedFilteredAggregation
Browse files Browse the repository at this point in the history
  • Loading branch information
Bart van Asselt committed Apr 25, 2024
1 parent 74a979e commit a37f5bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Application/Results.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ private function parseNestedAggregations(array $rawAggregation): array
$aggregations[] = new AggregationResult($nestedAggregationName, $rawNestedAggregation['buckets']);
}

if (is_array($rawNestedAggregation)) {
if (isset($rawNestedAggregation['doc_count'])) {
$nested = $this->parseNestedAggregations($rawNestedAggregation);
foreach ($nested as $item) {
$aggregations[] = $item;
Expand Down

0 comments on commit a37f5bc

Please sign in to comment.