You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why: Massive performance gains vs running sequential distinct queries.
41
+
42
+
#### Group By Ranges
43
+
44
+
`groupByRanges()` performs a [range aggregation](https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-range-aggregation) on the specified field. - [Docs](https://elasticsearch.pdphilip.com/eloquent/distinct/#groupby-ranges)
`groupByRanges()->agg()` - apply metric aggregations per bucket -[Docs](https://elasticsearch.pdphilip.com/eloquent/distinct/#groupby-ranges-with-aggregations)
49
+
50
+
#### Group By Date Ranges
51
+
52
+
`groupByDateRanges()` performs a [date range aggregation](https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-daterange-aggregation) on the specified field. - [Docs](https://elasticsearch.pdphilip.com/eloquent/distinct/#groupby-date-ranges)
53
+
54
+
`groupByDateRanges()->get()` — bucketed date ranges
55
+
56
+
`groupByDateRanges()->agg()` — metrics per date bucket
57
+
58
+
#### Model Meta Accessor
59
+
60
+
New model method `getMetaValue($key)` - [Docs](https://elasticsearch.pdphilip.com/eloquent/the-base-model/#get-model-meta-value)
61
+
62
+
Convenience method to get a specific meta value from the model instance.
When a bucketed query is executed, the raw bucket data is now stored in model meta. -[Docs](https://elasticsearch.pdphilip.com/eloquent/distinct/#raw-bucket-values-from-meta)
0 commit comments