My index is full of Post objects. Posts contain a
published_at attribute that reflects when the post went live on our site. I’d like the user to be able to dynamically filter search results so that they can see results from the last day, last week, last month, and last year.
With our current Elastisearch implementation I’m able to achieve this by filtering for results with a published date that is greater than X.
I’m not entirely sure how to do this/if it’s even possible with Algolia. I’ve found this, but it doesn’t seem to achieve what I want since I’m using the ruby gem and making search requests via the backend (which I know isn’t preferred, but works best for our set up).