Skip to main content.
home | support | download

Back to List Archive

Re: Tuning ranking manually with MetaNamesRank

From: Peter Karman <peter(at)not-real.peknet.com>
Date: Thu Jun 09 2005 - 14:45:49 GMT
koszalekopalek scribbled on 6/9/05 8:51 AM:

> Peter Karman wrote:
> 
>>
>>Are you including your 'keyword' metaname in the search?
> 
> 
> Arghh, is this where I went wrong? Remember that code
> snippet I sent:
> 
>      $handle = SWISH::API->new ($db);
>      $query = $handle->New_Search_Object;
>      $query->SetSort ('swishrank');
>      $results = $query->Execute($formWords);
> 
> I guess I also need to use before executing
> the query:
> 
>      $query->SetStructure (IN_FILE | IN_META);

I don't think it quite works like that, though I admit I've never understood the 
structure bits. I think instead you want:

   $results = $query->Execute( "$formWords or yourmeta=($formWords)" );


-- 
Peter Karman  .  http://peknet.com/  .  peter(at)not-real.peknet.com
Received on Thu Jun 9 07:45:49 2005