Skip to main content.
home | support | download

Back to List Archive

Re: multiple index issue

From: Peter Karman <peter(at)not-real.peknet.com>
Date: Sun Jun 05 2005 - 15:08:28 GMT
Thomas Nyman scribbled on 6/5/05 9:37 AM:

> Hi I'm back :)
> 
> I've managed to create indexes of an archive on a local machine and  
> an index of an archive from a remote machine.
> 
> I want to be able to search both indexes using swish.cgi.
> 
> However I seem to have an issue about what to put into  
> my .swishcgi.conf file.
> 
> At present my .swishcgi.conf is as follows
> 
> return {
> 
>          {
>          title => ' Document Archive ',
>          swish_binary => '/usr/local/bin/swish-e',
>          swish_index => '/Users/thomas/Public/swish-index/ 
> index.documents',
>          prepend_path => '/archive/'
>          }
> }
> 
> can i simply add another line with
> 
> swish_index => 'path to other index document',


no. A hash can only have one unique key. This:

   {
   ....

   }

is a hash reference in Perl.

Try this instead:

   swish_index => '/path/index1 /path/index2'


oh, and I see you're using OS X. Good for you! :)


-- 
Peter Karman  .  http://peknet.com/  .  peter(at)not-real.peknet.com
Received on Sun Jun 5 08:08:29 2005