Searchkick eagerload acts_as_taggable (deeply nested model)

355 views Asked by At

I'm trying to make Searchkick eager load tags created by the acts_as_taggable gem, hover it seems to ignore it so i think i'm doin it wrong this is my search_import:

searchkick language: "norwegian"
scope :search_import, -> { includes([:venue, :artists, :taggings, :tags ]) }

I have also tried:

searchkick language: "norwegian"
scope :search_import, -> { includes([:venue, :artists, taggings: { :tags } ]) }

But then everything crashes...

Does any one know how to make this work?

0

There are 0 answers