Faceting Nested Information with Single Field and Separator
TLDR Jainil asked about faceting by an object, but Jason suggested storing data in a single field using a separator. Jainil considered using JSON but Jason reaffirmed any unique string can be used.
May 17, 2023 (4 months ago)
Jainil
02:20 PM• type of source
• name of source
Is it possible to facet by an object? If not, what’s the recommended way of faceting such that I’m able to get both properties in the faceting menu (I.e both name and type)
Jainil
02:21 PMJainil
02:22 PMJason
07:57 PMJason
07:58 PMSo for eg, create a new field called
type_name_facet
and store the value as typeA|||nameA
Jason
07:59 PM|||
and then use the appropriate component for display purposesMay 18, 2023 (4 months ago)
Jainil
06:40 PMJainil
06:41 PMtype_name_facet
becomes '{"type": "typeA", "name": "nameA"}'
Jainil
06:43 PMJainil
06:43 PMJainil
06:43 PMJason
06:59 PMTypesense
Indexed 2779 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.
Updating Collections Strategy and Faceting New Field
Nithin asked about strategies for updating collections and faceting new fields. Kishore Nallan suggested creating another collection, indexing in the background and using aliases to switch live traffic over, and shared details about the upcoming release.
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.
Discussions on Typesense, Collections, and Dynamic Fields
Tugay shares plans to use Typesense for their SaaS platform and asks about collection sizes and sharding. Jason clarifies Typesense's capabilities and shares a beta feature. They discuss using unique collections per customer and new improvements. Kishore Nallan and Gabe comment on threading and data protection respectively.