Skip to main content.
home | support | download

Back to List Archive

filefilters and win32 question

From: Merritt, Robert <MerrittR(at)not-real.spsd.sk.ca>
Date: Sun Mar 31 2002 - 20:30:48 GMT
I have been having trouble getting filters to work within the win32 swishe.
here are the filters I have been trying to use with win32 swishe. But I keep getting 
a message below:


U:\Inetpub\wwwroot\cgi-bin\swishe>swishe -S fs -c  kb.config          -f newkb.index
Indexing Data Source: "File-System"
swish: FileFilter requires two values


FileFilter .doc d:\\inetpub\\wwwroot\\cgi-bin\\swishe\\catdoc.exe '"%p"'
FileFilter .pdf d:\\inetpub\\wwwroot\\cgi-bin\\swishe\\pdftotext.exe '"%p -"'

any suggestions , as far as I can see I am using the same syntax as in the 2.2 doc 
(www.swish-e.org/2.2/docs/SWISH-CONFIG.html)

here is the complete config file


# DIRECTIVES COMMON to  HTTP and FILESYSTEM METHODS
###################################################
# WINDOWS USERS NOTE:
#	Specify ALL files and directory paths in the
#	the config file using the forward slash, as
#	in /thisdirectory.	
#
###################################################

IndexDir "x:\" 


FileFilter .doc d:\\inetpub\\wwwroot\\cgi-bin\\swishe\\catdoc.exe '"%p"'
FileFilter .pdf d:\\inetpub\\wwwroot\\cgi-bin\\swishe\\pdftotext.exe '"%p -"'


#
#FileFilter .doc catdoc.exe  "%P"
#FileFilter .doc pdftotext.exe  "%P" > nul:


IndexFile newkb.index


FollowSymLinks no
Received on Sun Mar 31 20:32:17 2002