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 have a basic implementation of a user model with indexing, following the documentation precisely. However, the index is not processed because the associated job does not execute successfully.
For instance:
When I create a user, it is not indexed.
Similarly, deletions are not reflected in the index.
Expected behavior
The job should execute without errors.
Actual behavior
The job fails with the following error:
NoMethodError: undefined method `dig' for "UsersIndex":String
Steps to reproduce the problem
user.rb
update_index('users') { self }
users_index.rb
class UsersIndex < Chewy::Index
index_scope User
field :id, type: 'integer'
...
end
I have a basic implementation of a user model with indexing, following the documentation precisely. However, the index is not processed because the associated job does not execute successfully.
For instance:
Expected behavior
The job should execute without errors.
Actual behavior
The job fails with the following error:
Steps to reproduce the problem
user.rb
update_index('users') { self }
users_index.rb
chewy.rb
Version Information
The text was updated successfully, but these errors were encountered: