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
moseley@hank.org
Unsubscribe from or help with the swish-e list:
http://swish-e.org/Discussion/
Help with Swish-e:
http://swish-e.org/current/docs
swish-e@sunsite.berkeley.edu
Received on Mon Jan 24 18:03:41 2005