Skip to main content.
home | support | download

Back to List Archive

Re: [SWISH-E:86] Empty Index file and searching multiple index files

From: Jim Winstead <jimw(at)>
Date: Tue Dec 02 1997 - 01:43:42 GMT
On Dec 01, Flappy wrote:
> I suspect this should be considered a bug...
> If one specifies...
> swish-e -f   one.index two.index three.index    -w myword
> and if  one.index is an empty index,
> swish-e never searches two.index or three.index.

This is pretty easy to fix. In search.c, you want to replace the exit(0)
after the line that prints the "err: the index file is empty" message with:
	indexlist = indexlist->next;

You might also want to remove the period-on-a-line it prints in that
error message if you're using that in parsing the swish output at all.

Received on Mon Dec 1 17:52:23 1997