Hi, On Thu, Jun 29, 2006 at 02:20:47AM +0200, Neil Brandt wrote: > 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', > 'description']
you should not name the 'id' field in the list of fields, it's always added to the index automatically. Probably this will solve your problem. regards, Jens -- webit! Gesellschaft für neue Medien mbH www.webit.de Dipl.-Wirtschaftsingenieur Jens Krämer [EMAIL PROTECTED] Schnorrstraße 76 Tel +49 351 46766 0 D-01069 Dresden Fax +49 351 46766 66 _______________________________________________ Ferret-talk mailing list [email protected] http://rubyforge.org/mailman/listinfo/ferret-talk

