Faceting issue with Products Collections in Typesense
TLDR 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.
2
1
1
Sep 03, 2021 (29 months ago)
Carl
06:17 AM{"name": "collections", "type": "string[]", "facet": true },
which is not returning any data. Is possible to actually facet on a string[]
?The use case here, is that a product could be associated with a variety of "collections", so it needs to be an array. If I can't facet on an array, how would I work around this?
1
Kishore Nallan
06:18 AMCarl
06:19 AMJason
06:51 AMCarl
06:52 AMKishore Nallan
06:53 AMCarl
06:53 AMfacet_by
.I just created a new container, new index and sent some data but it worked fine. Going to try recreate the full index in the same environment to see if it just magicaly fixes
Kishore Nallan
06:54 AMCarl
06:54 AM<REMOVED>
Carl
06:55 AM<https://the-instance.com/collections/products/documents/search?q=red&query_by=product_name&facet_by=collections>
Carl
06:55 AMKishore Nallan
06:56 AM1
Carl
08:23 AM2
Typesense
Indexed 3011 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.
Typesense Facet Query Issue and Resolution
Stefan wanted to have typesense return count: 0 for filtered out facets, which was not supported. They shared a workaround using a server data call. The solution involved adding "facets: [this.filterConfig.attribute]," for the server adapter to work. Kishore Nallan acknowledged the resolution.
Production Typesense Issue with Unexpected Filter Behavior
Ankit flagged a problem with a specific filter on the production server of Typesense. After several exchanges regarding optimisation and version checks, Kishore Nallan provided latest builds to troubleshoot. The filtering within facets issue persists and potential edge cases are being investigated.
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.
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.