Skip to main content.
home | support | download

Back to List Archive

Re: SWISH::API and my lame perl skillz....

From: Bill Moseley <moseley(at)>
Date: Tue Jan 25 2005 - 02:03:40 GMT
On Mon, Jan 24, 2005 at 02:22:23PM -0800, Peter Karman wrote:
> Generally, when i am using SWISH::API in my web stuff, i have the search
> routine send me back an array of hashes that represent the search results,
> like this:

What I sometimes do is return an array of SWISH::Result objects:

> my $i = 1; my @swish_return;
> while ( (my $result = $results->NextResult) && ($i <=  $max_res) )
> {
        push @swish_return, $result;
>       $i++;
> }

Then in the template code have it do the method calls on the result
(to get at the property values).   Then the template is actually
calling into the swish library to read the prop file.

Bill Moseley

Unsubscribe from or help with the swish-e list:

Help with Swish-e:
Received on Mon Jan 24 18:03:41 2005