Document Boost in acts_as_ferret?

Is it possible to set a boost value for a document using
acts_as_ferret (not field boost - document boost)?

On Thu, Oct 12, 2006 at 09:10:22AM +1000, Johnny C. 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