If I have a field that is array of ints and I want...
# community-help
t
If I have a field that is array of ints and I want to group by that field, is it possible for typesense to group by each individual item in the array? For 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?
If not, are there any recommendations on how to work around this?
Any ideas here, please?
k
This is currently not possible because we treat the group as a whole value. However we are planning to address this because it is different from how facets behave (where each individual value is treated separately).
t
Hmm, thanks Kishore. That's good to know