Dynamic index name on Algolia with Rails

rahulchowdhury

Rahul Chowdhury πŸ•Ά

Posted on June 4, 2019

Dynamic index name on Algolia with Rails

Anyone used/using Algolia with Rails?

I need to set the name of my index dynamically based on an association in my model.

Example:

-> Indexing an article
-> Article belongs to Publication named dev
-> Index name should be set to dev
-> The new article gets added to the dev index

Any help, guys?

πŸ’– πŸ’ͺ πŸ™… 🚩
rahulchowdhury
Rahul Chowdhury πŸ•Ά

Posted on June 4, 2019

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related