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 kraemer at webit.de
Schnorrstra?e 76 Tel +49 351 46766 0
D-01069 Dresden Fax +49 351 46766 66