Skip to content

Commit

Permalink
Fix check Elastic search Bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
zoidbergx authored and aryaantony92 committed Jul 18, 2023
1 parent b6b1ab8 commit c918aa1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1145,7 +1145,7 @@ protected function convertBucketValues(array $bucket): array
$data['key_as_string'] = $bucket['key_as_string'];
} elseif (is_array($reverseAggregationBucket) && array_key_exists('doc_count', $reverseAggregationBucket)) { // reverse aggregation
$data['reverse_count'] = $reverseAggregationBucket['doc_count'];
} elseif (is_array($subAggregationBuckets['buckets'])) { // sub aggregations
} elseif(is_array($subAggregationBuckets) && isset($subAggregationBuckets['buckets'])) { // sub aggregations
foreach ($subAggregationBuckets['buckets'] as $bucket) {
$data[$subAggregationField][] = $this->convertBucketValues($bucket);
}
Expand Down

0 comments on commit c918aa1

Please sign in to comment.