Unfortunately I’m a newbie to ruby, rails, and acts_as_ferret. Also,
I’m working in code I mostly didn’t write, so I’m kind of unsure of
things. So this may be a dumb question. It also may be the same issue
as the topic ‘Duplicate search results’, but I’m not sure.
When I update column values with ApplicationController’s
update_attribute, I am getting additional ferret index entries rather
than replacing the old one. As a result, searches get hits when you
search on a historical value that is no longer the value of the field.
I assume that I am somehow misusing acts_as_ferret?
My call to add the mixin to the model class looks like this:
acts_as_ferret :store_class_name => true, :fields => [‘id’, ‘code’,
As a test (and a workaround), in acts_as_ferret.rb module
InstanceMethods, I replaced:
alias :ferret_update :ferret_create
This ensures unique indexes for me. But I’m guessing it’s redundant and
something else is not used or working as intended.
Thanks for reading,