On Mon, Feb 12, 2007 at 12:55:54PM +0100, Ed Ed wrote: [..] > > OK, I'll have a look at the code and see what might be simplest. Seems > to me that adding an extra optional directive to the configuration file > is easiest. This could name a file containing a user-supplied hook which > rdig/indexer.rb could try to include. Or just define the hook procedure > in the config file?
defining the hook method in the config sounds good. > Then if the hook procedure existed the indexer could pass it the > document and doc data structure and the hook procedure could augment the > doc structure as required. exactly. > I guess the only Ferret requirement here is that the hook must add the > same set of extra fields to each document (even if values NULL) not even that, you can have different ferret documents with a different set of fields. 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

