At 09:55 AM 09/10/02 -0700, Cori Diller wrote:
>(BTW I'm doing this in OS X)
Me too ;)
>I first created the config file with the absolute basic specs suggested in
>the manual (Dir, Only, Report) and it worked. Then I added the IndexFile
>line:
>
>IndexFile ./search.index
>IndexDir .
>IndexOnly .html
>IndexReport 1
>
>FYI, even without specifying the IndexFile I get all kinds of warnings. Is
>that supposed to happen?
Are you passing the name of the config file with the -c option?
>Warning: Substituted possible embedded null character(s) in file
>'./index.swish-e.temp'
Yep, that's a binary file.
>Indexing "IndexOnly"
>
>Warning: Invalid path 'IndexOnly': No such file or directory
>Indexing ".html"
Ah, interesting. On OS X I've only used nano to edit files. Perhaps the
editor you are using is using <cr> as a line terminator. The config file
is not read in binary so I'd expect that to be handled correctly. Maybe
not. Can you save your file in "unix" mode?
Can you post the output from this (replace "config" with the name of your
config file).
$ od -c config
here's a test showing an indexing run:
bash-2.05a$ pwd
~/build/swish-e-2.2rc1/html
bash-2.05a$ cat myconf
IndexFile ./search.index
IndexDir .
Indexonly .html
bash-2.05a$ ~/swish-e/src/swish-e -c myconf
Indexing Data Source: "File-System"
Indexing "."
Removing very common words...
no words removed.
Writing main index...
Sorting words ...
Sorting 2696 words alphabetically
Writing header ...
Writing index entries ...
Writing word text: Complete
Writing word hash: Complete
Writing word data: Complete
2696 unique words indexed.
4 properties sorted.
13 files indexed. 436495 total bytes. 42608 total words.
Elapsed time: 00:00:02 CPU time: 00:00:00
Indexing done!
bash-2.05a$ uname -a
Darwin usf-cf-ppc-macosx-1 5.5 Darwin Kernel Version 5.5: Thu May 30
14:51:26 PDT 2002; root:xnu/xnu-201.42.3.obj~1/RELEASE_PPC Power Macintosh
powerpc
--
Bill Moseley
mailto:moseley@hank.org
Received on Tue Sep 10 17:17:04 2002