Hey, say I have an array field of objects like: `e...
# community-help
t
Hey, say I have an array field of objects like:
exampleField: [{name: x, value: y}, {name: z, value: a}...],
and I facet by
exampleField.value
, is there an easy way to identify what
exampleField.name
each value in the facet result belongs to?
k
👋 That's not possible unfortunately. An array of objects are just squashed into field-wise arrays, and the original mapping information is not kept. In this case, it just becomes:
Copy code
"exampleField.name": ["x", "z"]
👍 1
j
This is what we wanted to do as well, made this issue as one potential solution https://github.com/typesense/typesense/issues/943 Feel free to upvote 🙏
👍 1