-
Notifications
You must be signed in to change notification settings - Fork 807
Closed
Description
Hi @karmi ,
Thank you for your awesome gems!
I am replacing Tire
to elasticsearch-rails
, the first issue is that it won't perform as_indexed_json
when update_document
, It' s update changed_attributes
only.
Is there any solution about this? perform as_indexed_json
when update_document
, not only changed_attributes
.
Source
Model
class User << ActiveRecord::Base
has_many :keywords
def as_indexed_json(options={})
{ :id => id,
email: email,
first_name: first_name,
last_name: last_name,
full_name: "#{first_name} #{last_name}",
research_interests: keywords.map(&:name)
}
end
end
Metadata
Metadata
Assignees
Labels
No labels