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
What kind of settings and what exactly are you doing? Have you checked the examples in elasticsearch-model and the Rails application templates in elasticsearch-rails?
…serialized during update
Previously, the `update_document` method simply intercepted the changes to the model, via the
`@__changed_attributes` variable, and used these directly.
This caused models with a custom serialization method to be incorrectly serialized, namely
unwanted attributes were added.
This patch looks for `as_indexed_json` defined on the model, and when it finds it,
filters the changed attributes through the keys.
Closes#75
Related:
* #59
* #57
* #52
* #40
* #37
* #5
No matter what settings I seem to use, the as_indexed_json method is only called when I do Model.import, but not on save
AM I missing something obvious in the documentation?
The text was updated successfully, but these errors were encountered: