Understanding Typesense Facets Implementation
TLDR Laura was looking for clarification on Typesense's facets functionality. Jason confirmed it's similar to Algolia's filter by concept.
Jun 09, 2023 (6 months ago)
Laura
02:00 PMconst algoliaResult = await index.search(q, {
attributesToRetrieve: ['id'],
tagFilters,
hitsPerPage: 24,
facets: '*',
facetFilters: [`product_type_code:${category}
page,
})
Jason
02:07 PMLaura
02:45 PMTypesense
Indexed 3011 threads (79% resolved)
Similar Threads
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.
Range Filtering and Faceting Discussion
Phil asked about the requirements for range filtering, which Jason explained does not always require faceting. Discussion about different possibilities with Algolia and Typesense ensued, resulting in Phil successfully utilizing the 'Configure' widget.
Resolve Facets and Sorting Issues with Typesense
Ethan needed assistance with getting all facet values and sorting results by date using Typesense. Jason provided guidance on how to use Typesense properties to accomplish these tasks, and resolved issues related to specific use-cases provided by Ethan and Rushil.