Skip to main content.
home | support | download

Back to List Archive

Re: CGI Script Question

From: Aaron Bazar <aaronb(at)not-real.spamcop.net>
Date: Sat Jul 17 2004 - 02:02:10 GMT
Thanks everybody for this hack. I have been meaning to do this for the past
year. Had I known it could be so simple to implement, I would have done it
sooner.

Best regards,


Aaron Bazar
http://www.bytehound.com/

-----Original Message-----
From: swish-e@sunsite3.berkeley.edu
[mailto:swish-e@sunsite3.berkeley.edu]On Behalf Of Peter Karman
Sent: Friday, July 16, 2004 3:04 PM
To: Multiple recipients of list
Subject: [SWISH-E] Re: CGI Script Question


I see I didn't reply accurately enough to the initial question.

I might hack swish.cgi around line 798:

if ( $search->hits ) {
	$search->set_navigation; # sets links
}

and add:

if ( $search->hits ) {
	$search->set_navigation; # sets links
} else {

	print MYLOG "no matches for query: $search->{q}\n";

}

or however you want to dump it (e.g, tie to a db and make a new
record with the time, other env variables, etc.)

John Wentworth wrote on 7/16/04 11:05 AM:

> I basically like the contents of the swish.cgi script for search
> and I do not want to modify it alot but I would like to add one feature =
> I would like the drop the search terms and the result of the search into =
> a database to analyze what our customers are searching for
> I don't really know perl but I figure I should be able to hack something =
> together with some tutorials I found
> what I basically need to information as to which perl variables in this =
> script correspond to that information and where would be a good place to =
> insert this code since I'm having trouble following the code
>
> thank you very much
> john
>
>
> *********************************************************************
> Due to deletion of content types excluded from this list by policy,
> this multipart message was reduced to a single part, and from there
> to a plain text message.
> *********************************************************************

--
Peter Karman - Software Publications Engineer - Cray Inc
phone: 651-605-9009 - mailto:karman@cray.com
Received on Fri Jul 16 19:02:28 2004