next up previous contents index
Next: Rewriting URLs Up: 4.6 Post-Summarizing: Rule-based tuning Previous: 4.6 Post-Summarizing: Rule-based tuning

The Rules file

The conditions and instructions are combined together in a ``rules'' file. The format of this file is somewhat similar to a Makefile; conditions begin in the first column and instructions are indented by a tab-stop. Example:

        type == 'HTML'
                partial-text | cleanup-html-text.pl

        URL ~ /users/
                time-to-live = "86400"
                partial-text ! extract-owner.sh

        type == 'SOIFStream'
                delete()

This rules file is specified in the gatherer.cf file with the Post-Summarizing: tag, e.g.:

        Post-Summarizing: lib/myrules



Duane Wessels
Wed Jan 31 23:46:21 PST 1996