Setting Alphabetical Ordering for Facets in Typesense
TLDR Sean inquired about setting the ordering of a facet to alphabetical in Typesense. Jason suggested using transformItems
or a normal JS array sort on items
.
1
Sep 30, 2021 (28 months ago)
Sean
08:32 PMJason
08:34 PMJason
08:35 PMSean
08:36 PMJason
08:38 PMSo you might have to sort items as needed using
transformItems
: https://www.algolia.com/doc/api-reference/widgets/refinement-list/react/#widget-param-transformitemsSean
08:43 PMitems
1
Typesense
Indexed 3015 threads (79% resolved)
Similar Threads
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.
Using Alphabetical Sorting Feature with Typesense-InstantSearch-Adapter
Jan inquired about using the alphabetical sorting feature with the typesense-instantsearch-adapter. Jason clarified that the feature is available from version 0.26.0.rc.
Query on Facet Values, `max_facet_values` , and `facet_query_num_typos`.
Jan asked about sorting facet values, managing `max_facet_values` and issues with `facet_query_num_typos`. Jason clarified the details on instantsearch widget handling of `max_facet_values` and identified a bug on the Typesense Server. Jason suggested a solution to the sorting issue.