Identifying Names for Faceted Object Arrays
TLDR TJ inquires about identifying names in facet results for object arrays. Kishore Nallan explains it's not possible, while John points to a relevant GitHub issue.

Jun 14, 2023 (3 months ago)
TJ
07:39 AMexampleField: [{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?Kishore Nallan
07:45 AMIn this case, it just becomes:
"exampleField.name": ["x", "z"]

John
11:29 AMFeel free to upvote 🙏

Typesense
Indexed 2764 threads (79% resolved)
Similar Threads
Faceting Objects in Typesense
John wants to facet objects in Typesense, but faces issues. Kishore Nallan suggests creating a feature request on GitHub.


Faceting issue with Products Collections in Typesense
Carl was unable to facet on a string array. Kishore Nallan and Jason advised ensuring facet counts were being returned and offered to assist in troubleshooting. Issue resolved upon Carl realizing no data was saved in the database.



Facetting Field Inside Object Array in GH Issue
Michael enquires about faceting fields inside an object array and GH issue. After clarifying facets' syntax and usage, Kishore Nallan explained how to handle the situation, which resolved Michael's issue.