Skip to main content.
home | support | download

Back to List Archive

Re: get index file name from $result object?

From: Bill Moseley <moseley(at)>
Date: Thu Jan 20 2005 - 17:49:07 GMT
On Thu, Jan 20, 2005 at 08:44:03AM -0800, Peter Karman wrote:
> but is there a way to get the index file name as well from the $result 
> object? I don't immediately see it (could be I'm overtired...)

Not that I remember.  But you could have a one-line function something

all untested, of course...

char *SwishResultIndexName( RESULT *result )
   return result->db_results->indexf->line;

Then in API.xs add:

char *
SwishResultIndexName( self )
    SW_RESULT self

Then in perl do:

  $index = $result->IndexName;

Bill Moseley

Unsubscribe from or help with the swish-e list:

Help with Swish-e:
Received on Thu Jan 20 09:49:08 2005