Hi! On Sat, Feb 10, 2007 at 12:29:27PM +0100, Ed Ed wrote: > Hello everyone, > > I am writing an application which collects a set of web sites and caches > them locally for offline viewing. I want to do searches on this > collection and associate extra data with each result (e.g date > collected, reason for collection, perhaps a sequence number). > > Now all this data exists when the harvesting is done and could be stored > in a database. I want to use RDig to index my collection of sites I also > want to associate the index results with my extra data and display them > along with search results. > > The index is built once and searched many times so I want searching to > be as efficient as possible. > > The simplest way is to use e.g. the local URL as a key into my database > (easy but needs to be done each time and could slow things down) > > Is it possible to add extra fields to ferret index entries?
of course that is possible, RDig itself uses three different fields - :url, :title and :data. > If so, can this be done at create time or must it be done afterwards? If > it can be done at create time is there a way to get RDig to insert these > extra fields? Ferret documents cannot be modified after they have been created, so any custom fields you want to add have to be added when the index is created. Atm RDig doesn't support custom fields, however I'd be happy to apply a patch adding this capability ;-) cheers, 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

