Skip to content

Commit

Permalink
Support keyword aggregations
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Richter committed Dec 11, 2024
1 parent 50f3938 commit 90f93ab
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Classes/Common/QueryParamsBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,13 @@ private static function getAggs(array $settings, string $index): array
]
]];
}
if ($entityType['type'] == 'keyword') {
return [$entityType['field'] => [
'terms' => [
'field' => $entityType['field']
]
]];
}
return [
$entityType['field'] => [
'nested' => [
Expand Down

0 comments on commit 90f93ab

Please sign in to comment.