Grouping by Individual Items in Array of Ints in Typesense
TLDR TJ asks about grouping by individual items in an array of ints in Typesense. Kishore Nallan confirms it's not possible, but it's in their plans to address the issue.
Mar 23, 2023 (9 months ago)
TJ
11:59 PMFor example: if the field is called
sample
and document A has sample: [1]
while document B has sample: [1, 2]
. It looks like if I group by sample
, typesense will return two groups with keys: [1] and [1,2].But what if I wanted it to have keys: [1] and [2], is there a way I can achieve this?
Mar 24, 2023 (9 months ago)
TJ
12:02 AMTJ
09:10 AMKishore Nallan
09:16 AMTJ
09:18 AMTypesense
Indexed 3015 threads (79% resolved)
Similar Threads
Grouping and Aggregation in Typesense
kam asked about grouping and summing in Typesense. Jason explained that Typesense supports grouping, but aggregations are done on the entire resultset.
Optimizing Typesense Filter Performance with Array Fields
Vladimir ran into performance issue filtering array fields in Typesense. Jason suggested upgrading Typesense version, which helped reduce response times. Vladimir confirmed correlation between filtering conditions and performance.
Querying Fields in Random Order in a Collection with Typesense
Andrew asked if it was possible to query fields in a random order with Typesense. Jason explained that this feature isn't currently available but is being tracked within a GitHub issue and provided a workaround.