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 (26 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 2786 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.
Resolving Issue with Instantsearch Sort_by in React
Edward had a problem with sorting functionality in a React component using Algolia's InstantSearch. Jason recommended a potential solution for specifying index names which resolved the issue.
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.