Closed cristian-araujo closed 3 months ago
Thanks for flagging @cristian-araujo - this will be fixed in the next release.
Hi @cristian-araujo - this has been fixed in the latest release: https://github.com/pdphilip/laravel-elasticsearch/releases/tag/v4.0.4
Package Version
4.0.3
Describe the Bug
The rawAggregation method is only returning the last aggregation result, instead of returning all specified aggregations.
To Reproduce
Here is the code that demonstrates the issue:
Issue Explanation
The query above defines multiple aggregations (brands, price_ranges, fuel_types, and transmission_types). The rawAggregation method should return the results for all specified aggregations, but currently, it only returns the result for the last aggregation (transmission_types in this case).
Expected Behavior
The expected behavior is that the rawAggregation method should return the results for all specified aggregations as part of the response.
Component Versions
Please find the relevant versions from the composer.json file: