-
Notifications
You must be signed in to change notification settings - Fork 533
update_index failed with index_prefix #895
Comments
Put |
I added config/environments/development.rb Tire.configure { logger STDERR, level: "debug" } app/models/article.rb after_save { Restart, then After created a new record: Start index here........... /elasticsearch/logs/elasticsearch.log - Nothing appened Is there any config I missed? |
Besides, after I run the rake tasts, the items can be searched. the after_save callbacks still fails. |
My model Article can be searched via tire after I rake
"rake environment tire:import CLASS='Article'
However, I tried to update_index for new records, even include the Callbacks, it failed. I bet the index_prefix causing the problem.
include Tire::Model::Search
index_prefix "#{Rails.application.class.parent_name.downcase}_#{Rails.env.to_s.downcase}"
include Tire::Model::Callbacks
The text was updated successfully, but these errors were encountered: