[ < ] [ > ]   [ << ] [Plus haut] [ >> ]         [Top] [Table des matières] [Index] [ ? ]

15.1.2 swish

In the examples below, replace ‘/home/user/Mail’ with the path to your MH directory.

First create the directory ‘/home/user/Mail/.swish’. Then create the file ‘/home/user/Mail/.swish/config’ with the following contents:

 
DefaultContents TXT*
IndexDir /home/user/Mail
IndexFile /home/user/Mail/.swish/index
IndexName "Mail Index"
IndexDescription "Mail Index"
IndexPointer "http://nowhere"
IndexAdmin "nobody"
#MetaNames automatic
IndexReport 3
FollowSymLinks no
UseStemming no
IgnoreTotalWordCountWhenRanking yes
WordCharacters abcdefghijklmnopqrstuvwxyz0123456789-
BeginCharacters abcdefghijklmnopqrstuvwxyz
EndCharacters abcdefghijklmnopqrstuvwxyz0123456789
IgnoreLimit 50 1000
IndexComments 0
FileRules filename contains \D
FileRules pathname contains /home/user/Mail/.swish
FileRules pathname contains /home/user/Mail/mhe-index
FileRules filename is index

This configuration does not index the folders that hold the results of your searches in ‘+mhe-index’ since they tend to be ephemeral and the original messages are indexed anyway.

If there are any directories you would like to ignore, append lines like the following to ‘config’:

 
FileRules pathname contains /home/user/Mail/scripts

Use the following command line to generate the swish index. Run this daily from cron:

 
swish-e -c /home/user/Mail/.swish/config

Ce document a été généré par Eric Reinbold le 27 Octobre 2007 en utilisant texi2html 1.78.