Collect¶
The "collect"
transform collects (buffers) the data items from the data flow
into an internal array and optionally sorts them.
Parameters¶
groupby
-
Type: array
Arranges the data into consecutive batches based on the groups. This is mainly intended for internal use so that faceted data can be handled as batches.
sort
-
Type: CompareParams
The sort order.
Example¶
{
"type": "collect",
"sort": {
"field": ["score"],
"order": ["descending"]
}
}