Skip to main content.
home | support | download

Back to List Archive

minor issue with swish.cgi

From: Roman Chyla <chyla(at)not-real.knihovnabbb.cz>
Date: Fri Jun 24 2005 - 10:32:14 GMT
hi,

I am using swish.cgi

if sending query string without index (without si) and without 
default_index directive in config file, then swish.cgi
doesn't set "-f " and set errstr

but what confused me is the message

Index file error: Could not open the index file 'index.swish-e': No such 
file or directory

it is because the first errstr
"Please select a source to search"
was rewritten when running swish-e binary

I think there might be extra check inside of run_query() and avoid 
running swish-e if the errstr "Please select a source to search" was 
set, or something simillar

maybe ?

return $self if ($self->errstr =~ "Please select a source");

or

return $self if (!$self->swish_command('-f') && ($self->errstr =~ 
"Please select"));



rca
Received on Fri Jun 24 03:32:22 2005