Skip to main content.
home | support | download

Back to List Archive

Re: Defining Custom Properties

From: Bill Moseley <moseley(at)>
Date: Mon Sep 05 2005 - 17:25:42 GMT
On Mon, Sep 05, 2005 at 08:08:06AM -0700, andy rosbrook wrote:
> >     $prop = $result->Property('category');
> This is what i would be after, but am i able to define the property category 
> inside the config file? I have an automated system which generates 
> swish.config for diffrent file types and indexes, so i was thinking i could 
> also add what category the results are from.
> Eg.
> might belong to the 'resource' category.
> So a seprate indexes will have seprate property values as i write the config 
> through perl.

Why not?:

    my $resource = $swish->HeaderValue( 'IndexName' );

> This is a possible solution, i could simply set IndexDescription as 'books', 
> can this property be retrived using the API?

I think so.

Bill Moseley

Unsubscribe from or help with the swish-e list:

Help with Swish-e:
Received on Mon Sep 5 10:25:51 2005