typesense / typesense-instantsearch-adapter

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

Date Range Picker #157

Open akamil-etsy opened 1 year ago

akamil-etsy commented 1 year ago

does typesense adapter support Date Range Picker or something similar, basically being able to filter between two dates, or before/after certain date. is there any example how to do that with typesense

example from instantsearch.js

Screen Shot 2023-03-22 at 9 51 04 PM

also how can I add dates or date ranges as facets & refinements: Screen Shot 2023-03-22 at 9 53 48 PM

jasonbosco commented 1 year ago

It seems like the datepicker widget you shared just relies on the date being in a Unix timestamp format in the field you're using. So it should work out of the box with Typesense.

Let me know if you run into any issue, and I can take a closer look.