List of Facets in Collection and Version Update
TLDR arif wants to get a list of all facets in a collection. Jason suggests using facet_by: *
and clarifies that removing all records with a particular attribute won't remove the field from the schema. Upgrading to the latest version should be scheduled manually.
May 25, 2023 (4 months ago)
arif
11:42 AMI need some suggestions. I need a list of all facets available in a collection. And I have a facet defined by a wildcard like
tag.*
in the schema. From my observation - if I get a collection via the GET API, I get the current schema which will include facets like tag.something1
, tag.something2
. Now my confusions are -1. is this the proper way to get the list of all current facets?
2. would this approach be feature proof? (I mean if there is any chance to not providing this info via this API)
3. suppose,
tag.something1
had only one one record and I have removed it. should I still expect to have facet in the schema?4. is there any limitation of such dynamic facets? in terms of the number of facets and performance in the future?
Thanks!
Jason
08:11 PMv0.25.0.rc30
you can send facet_by: *
and that will return all the available facetsJason
08:12 PMJason
08:12 PMMay 26, 2023 (4 months ago)
arif
08:51 AMTypesense v0.24.0
. Should I manually update the version somehow? of it will be done automatically?arif
09:06 AMrc
versions are not stable)Jason
04:38 PMJason
04:38 PMTypesense
Indexed 2779 threads (79% resolved)
Similar Threads
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.
Firestore to Typesense Backfill Issue with Dynamic Paths
Greg experienced issues with Firestore to Typesense backfill not working, and Jason determined it might be related to dynamic paths in Firestore collections not being supported. An RC version of the extension with dynamic path support was considered but needs further review before being shared with Greg.
Faceting Objects in Typesense
John wants to facet objects in Typesense, but faces issues. Kishore Nallan suggests creating a feature request on GitHub.
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.