Skip to main content.
home | support | download

Back to List Archive

swish-e filters

From: Urtzi Larrazabal <urtzi(at)>
Date: Tue Apr 16 2002 - 08:55:55 GMT
I would very very gratefull if you could help me please.
I am trying to execute swish with a filter and I don't know why but it doesn't work well.

# vi user.config

FilterDir /usr/local/swish/filters/

#FileFilter .gz
#FileFilter .pdf
FileFilter .pdf

# more
echo "File to convert: $1"
echo "URL or Filename: $2"
echo "If arg 2 is not empty this"
echo " this is the  filename or url"
echo " (means: $1 = temp. file)"

When I execute swish I have the following:

# ./swish-e -c user.config

Indexing Data Source: "File-System"
Indexing /home/www-servers/https-wwwesi/doc/pruebas/..

Checking dir "/home/www-servers/https-wwwesi/doc/pruebas/"...
Broken Pipe

Removing very common words...
no words removed.
Writing main index...
Computing hash table ...

Nevertheless if I use a filter gzip-filter.gz it works fine.

if ($src_name eq "") {
   $src_name = @ARGV[0];
system ("cat \"@ARGV[0]\" | gzip -d");


Received on Tue Apr 16 08:56:07 2002