Ashutosh Thakur
05/11/2025, 8:39 AMgroup_by
functionality in Typesense to group documents by a specific field (e.g. supplier_id
). I wanted to know if there’s currently a way to perform aggregation operations like SUM
, AVG
, MIN
, or COUNT
on grouped fields directly within Typesense, similar to how SQL or Elasticsearch aggregations work?
For example:
• Group all documents by supplier_id
• Then compute the SUM
or AVG
of the price
field per group
• And return that in the search result itself
Is this kind of aggregation supported?
If not, is it something that’s on the roadmap or are there any suggested workarounds apart from post-processing on the client/server side?
Thanks in advance!
cc. @Sahil Rally @Atishay Jain