Skip to main content.
home | support | download

Back to List Archive

Re: Different between Query and Execute?

From: Peter Karman <petert(at)>
Date: Thu Dec 02 2004 - 03:16:08 GMT
Lars Kellogg-Stedman wrote on 12/1/04 8:49 PM:

> Hello again,
> Another API question.  Is there a substantive difference between:
>   $swish->Query("foo or bar");
> And:
>   my $so = $swish->New_Search_Object;
>   $so->Execute("foo or bar");

both of those will return a results object, so in your example, no

but there's a big advantage in using New_Search_Object.

The only way to get a search object is with New_Search_Object. And only
with a search object can you use the following methods:


for example, if you want to sort by anything other than the default
(swishrank) you need a search object.

Peter Karman  .  .  peter(at)
Received on Wed Dec 1 19:16:13 2004