Creating Custom URL with SortBy Widget
TLDR Akash asked how to create a custom URL using the SortBy widget. Jason suggested setting routing: true
to auto-update the URL for any widget type.
Nov 08, 2023 (3 weeks ago)
Akash
01:34 PMJason
04:29 PMrouting: true
like this: https://github.com/typesense/showcase-xkcd-search/blob/1351a2cd879086d01d5c2d1be33e00d43b5e68a1/src/app.js#L132And then Instantsearch will update the URL automatically for all types of widgets. Here's a demo with the sort by parameter in the URL:
https://findxkcd.com/?xkcd%5BsortBy%5D=xkcd%2Fsort%2FpublishDateTimestamp%3Aasc
Typesense
Indexed 3011 threads (79% resolved)
Similar Threads
Creating Custom Widget with React InstantSearch DOM
KARTHICK needed assistance creating a custom widget using functional component in React InstantSearch DOM. Jason provided a link with full customization examples for each widget.
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.
Troubleshooting Typesense Setup and Understanding Facets and Keywords
Demitri encountered errors when exploring Typesense for the first time. Jason guided them through troubleshooting and discussed facets, keyword settings, and widget configurations. Helin shared a Python demo app and its source code to help Demitri with their project.