On Thu, Oct 12, 2006 at 09:10:22AM +1000, Johnny Cussen wrote:
> Is it possible to set a boost value for a document using  
> acts_as_ferret  (not field boost - document boost)?

This should be possible by overriding the to_doc instance method in your
model: 

def to_doc
  doc = super
  doc.boost = 2 # fit to taste, i.e. get from instance variable 
  doc
end


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

Reply via email to