You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to use Multisearch along side associated against so for instance in my imaginary example:
class Order < ActiveRecord::Base
multisearchable :against => [:reference_number, { :shipping_address => [:person_name_override, :company_name_override] }]
end
Then be able to run
PgSearch.multisearch('search_term')
and have it go against the associated against model, is that possible to achieve?
The text was updated successfully, but these errors were encountered:
To make it stay consistent, you'll need to add :touch => true to the ShippingAddress class's association so that when it is updated, the pg_search Active Record callbacks get fired on its Order as well. This will also change the updated_at on the Order, in case that's a concern for you.
I want to use Multisearch along side associated against so for instance in my imaginary example:
Then be able to run
and have it go against the associated against model, is that possible to achieve?
The text was updated successfully, but these errors were encountered: