Skip to main content.
home | support | download

Back to List Archive

Re: How to select an index with swish.cgi

From: Bill Moseley <moseley(at)>
Date: Thu Aug 26 2004 - 18:27:30 GMT
On Thu, Aug 26, 2004 at 09:52:04AM -0700, Bill Pavich wrote:
> Hello.
> Using swish-e 2.4.1 on a solaris 2.9 box.
> Using swish.cgi v1.13.2.1.
> I used a lot of predefined URLS using swish.cgi and it all works great.
> However, I would like to try to specifiy the index file to use for these
> predefined URLS as I have a lot of different indexes.
> Ex:
> http://archive/cgi-bin/swish.cgi?query=3Dpubdate=3D082004&submit=3DSearch=
> &sort
> =3Dswishtitle
> How can I specifiy the location of swish_index so I can limit predefined
> searches to a particular index?

See "select_indexes" near the top of swish.cgi (in the example/default
config section).

That should enable the query parameter to index selection.  IIRC,
swish.cgi looks for one or more "si" query parameter with a numeric
value that is an index into the list of defined indexes.

Bill Moseley

Unsubscribe from or help with the swish-e list:

Help with Swish-e:
Received on Thu Aug 26 11:28:37 2004