searchkick index related model fields searchkick index related model fields elasticsearch elasticsearch

searchkick index related model fields


Shortly after asking the question, I found a solution on one of the issues on the github page:

def search_data    {      name: name,      intro: intro,      bio: bio,      tag_name: tags.map(&:name)    }end

That indexes the correct attributes.