Retrieving Facets of a Collection
TLDR Digamber inquired about retrieving all facets of a collection. Kishore Nallan suggested using the collection summary endpoint, looping through the fields, and caching the results.
Sep 21, 2022 (15 months ago)
Digamber
10:39 AMIs there a way to retrieve all the facets of a collection
Kishore Nallan
10:41 AMfacet: true
Digamber
10:52 AMMaybe an idea for the future ?
Kishore Nallan
10:56 AMDigamber
10:56 AMKishore Nallan
10:57 AMDigamber
10:58 AMTypesense
Indexed 3015 threads (79% resolved)
Similar Threads
Counting Facets within a Nested Object using Filters
Narayan asked how to get facet counts in a nested object, with filtering, and whether you can facet by an object. Jason suggested using `filter_by` and shared new features supporting this.
List of Facets in Collection and Version Update
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.
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.