Closed berniechiu closed 4 years ago
Hi @ankane , I wonder if it's possible to eager multiple tables since we can do this in Rails
Like the example here subscription: :plan
subscription: :plan
Company.includes(:balance, subscription: :plan).each { ... }
But not sure how we can achieve this in Searchkick, the description doesn't say much here
Searchkick
Product.search "milk", includes: [:brand, :stores]
Thanks!
Hey @berniechiu, you can do:
Product.search "milk", includes: [:balance, {subscription: :plan}]
Thx a lot!
Hi @ankane , I wonder if it's possible to eager multiple tables since we can do this in Rails
Like the example here
subscription: :plan
But not sure how we can achieve this in
Searchkick
, the description doesn't say much hereThanks!