Skip to main content.
home | support | download

Back to List Archive

HELP! Swish-e not accepting FileFilter directive. (pdf)

From: Bruce Carter <brucar(at)not-real.mohave.edu>
Date: Thu May 16 2002 - 19:24:05 GMT
I wish to use the xpdf to index pdf files with Swish-e.  (v. 1.3.2, running on FreeBSD)


1.  Swish-e runs okay on HTML (filesystem)
2.  pdftotext runs from the command line.

Swish CONF file

IndexDir /usr/home/mohave.edu/swish-e
IndexOnly Nursing.pdf
FileFilter  .pdf pdf-filter.sh
IgnoreWords SwishDefault
IndexFile /usr/home/mohave.edu/swish-e/acrobat.index
IndexName "Mohave Community College PDF Index"
IndexReport 3

Filter Sript:  (pdf-filter.sh)
#!/bin/sh
# Adobe PDF filter
# see: http://www.foolabs.com/xpdf/
/usr/local/bin/pdftotext "$1" - 2>/dev/null

ERROR GENERATED:
Indexing Data Source: "File-System"
Bad directive on line #3: FileFilter  .pdf pdf-filter.sh
Received on Thu May 16 19:24:32 2002