typesense / typesense-instantsearch-adapter

A JS adapter library to build rich search interfaces with Typesense and InstantSearch.js
MIT License
403 stars 63 forks source link

sort_by not working with instantsearch widget #9

Closed Geoffry304 closed 3 years ago

Geoffry304 commented 3 years ago

Hello,

is it correct that sorting is not working like the way algolia works? For the sortby widget they using replicas, is there a way I can edit the url with a self made widget?

jasonbosco commented 3 years ago

@Geoffry304 Here’s how you can configure the sortyBy widget using the Typesense InstantSearch adapter: https://github.com/typesense/typesense-instantsearch-adapter#sortby

Here’s an example of it in action: https://github.com/typesense/typesense-instantsearch-adapter/blob/2e435aa775e4ca9e59518470cc4cd6b169e0cd4e/test/support/testground/src/app.js#L157-L164