DEV Community

Discussion on: Dynamic index name on Algolia with Rails

Collapse
 
ben profile image
Ben Halpern

I'd guess maybe you want to dip into Algolia Ruby instead of using the Rails gem functionality, which does everything at class level and doesn't take arguments per se.

You might want to look at whether dynamic index names is an anti-pattern with Algolia. I'm not sure but I could see maybe it being ill-advised for some reason. Do you need everything to be a separate index altogether or could you do this a different way?

Collapse
 
rahulchowdhury profile image
Rahul Chowdhury πŸ•Ά

Yeah, I ended up using a single index with facets for filtering articles from a specific publication.