Excluding Algolia results based on dates values

I have records with a publish_from and publish_to date, if now() is between those 2 values the record is visible to the users. I have the logic in my controller right now, but now I need to move the logic over to VUE to work with Algolia. Is there a way to configure such rules in Algolia?

Alternatively, I have to “update” the index every… minute… which doesn’t seem right.

I also want to make sure the user can’t overwrite settings and grab records that aren’t public yet.