I’m playing around with the algolia rails gem, and can’t seem to find a solution to this. I want to index Post objects, but only posts that meet a specific condition, specifically those that have live status codes (
Post.where(status_code: [1,2,3]) or posts where
live? returns true).
Adding a conditional into the
algoliasearch block doesn’t actually seem to work.