Jens Kraemer wrote: > instead copy'n paste you could just call super: > > def to_doc > doc = super > # custom code here > doc > end
Ah, I had missed out on that, I don't really understand how super works in ruby. I had been trying to rename the method and create a new one aliased to it which didn't work. I'm still a bit confused as to_doc is created by the mixin as an instance method, is there still a superclass version? Anyway thanks for that tip, I'll try it. > 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 ? Yes. Some are strings (tokenize), some are integers (dont tokenize, ideally use a different analyser), and some are choices from lists (either untokenized String or treat as integer index of choice). Dates are treated as integers, and we may want to include some strings in the DB so they can be displayed in the search results. David -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ferret-talk mailing list [email protected] http://rubyforge.org/mailman/listinfo/ferret-talk

