Skip to main content.
home | support | download

Back to List Archive

Re: swish.cgi and multiple indexes

From: Bill Moseley <moseley(at)not-real.hank.org>
Date: Tue Apr 06 2004 - 20:32:03 GMT
On Tue, Apr 06, 2004 at 05:44:08AM -0700, Boris Ruppert wrote:
> Hi,
> 
> i am using swish-e 2.4.2 and can't get the swish.cgi work with
> multiple indexes and select_index. There is no selection like a checkbox
> and the results come from the first index.
> Here is my config:

That config works fine for me -- it shows two check boxes

Select category:
   ___ hints ___  our website

Are you naming the config file .swishcgi.conf in the directory where the
CGI script is run?  Are you seing the "Sun-Hotline" title?


> 
> return {
> 	title		=> 'Sun-Hotline Searchengine',
> 	swish_binary	=> '/opt/swish-e/bin/swish-e',
> 	swish_index	=> ['/opt/swish-e/indices/hints.index',
> 			    '/opt/swish-e/indices/www.index'],
> 	page_size	=> 20,
> 	max_query_length => 100,
> 	max_chars       => 500,
> 	select_indexes	=> {
> 			   method 	=> 'checkbox_group',
> 			   columns 	=> 2,
> 			   labels 	=> ['hints', 'our website'],
> 			   description => 'Select category:',
> 			   default_index => '',
> 			   },
> 	 #debug_option => 'basic, command, headers, output, summary, dump',
> 	 # use_library => 1,
> 
> }
> 
> 
> Maybe someone can give a hint, i really don't know what i am doing wrong.
> 
> Thanks in advance,
> 
> Bobo
> 
> -- 
> Boris Ruppert - bobo[at]sideburns[dot]dyndns[dot]org
> 

-- 
Bill Moseley
moseley@hank.org
Received on Tue Apr 6 13:32:04 2004