On Mon, Sep 18, 2006 at 05:28:45PM +0200, David Sheldon wrote: > Hi, > > I have a model which has properties, these are your standard name/value > pairs, but also have attributes that affect how I want to store them in > ferret. I was using 0.9.5 with 0.2 of aaf, which seemed fine, I just > copied and pasted (yes, I know, ick) the to_doc method and added code to > iterate though the properties that that model had, and add relavent > fields to the document.
instead copy'n paste you could just call super: def to_doc doc = super # custom code here doc end > It seems that this will be a bit harder now with the FieldInfos. Has > anyone else done this, and is there a recognised way of doing it? imho adding arbitrary fields should work, you just can't specify any special per-field storage/indexing options, since the defaults determined at index creation will be used. With aaf this means :store => :no, :index => :tokenize changing the characteristics of a field for a special document doesn't seem to be possible any more. Was that what you did until now, i.e. tokenize or store a field's value sometimes, and sometimes not ? 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

