Skip to main content.
home | support | download

Back to List Archive

Re: Filtering terms with swish.cgi

From: Dave Moreau <davidjmoreau(at)>
Date: Tue Oct 14 2003 - 01:52:34 GMT
>(please keep posting to the list -- helpful for people searching the

sorry. i meant to send it to the list...

>On Tue, Oct 14, 2003 at 01:20:05AM +0000, Dave Moreau wrote:
> > Terms:  blah
> > Verses: Gen 1:1-2
>Is Verses a free-form field or is it a drop down list?

free form

> > should be converted to the terms 'blah (gen001001 or gen001002)' and 
> > to swish-e.exe (actually, I will use disjunction). The 'blah' can be
> > anywhere in the document (not limited to meta tags).
>Yes, so look at that spot I pointed out.  You would do someting like:
>   my $verses = $q->param('verses');
>   if ( $verses ) {
>       my $verses_key = convert_to_verses_id( $verses );
>       $query .= " and verse=($verses_key)" if $verses_key;
>   }
>So basically you are just adding that on to the existing query string.

That's what I tried before, but I must have missed something. Thanks for the 
quick reply.
I'll try playing with $query again.


Protect your PC - get VirusScan Online
Received on Tue Oct 14 01:52:47 2003