Thank you for the reply. :)
I am sorry but as I told you before I'm new to Perl and so I am trying to understand the code (I usually work with Java).
what did I understand so far is:
1) I have to create a property to store the H1 tag (i.e. "h1titletag"). To do this, I guess I need to change the $search and $result objects.
Where can i find these objects ?
2) Since it's possible that there will be more than one H1 tag, and I need only the first one, I need to use the -S prog method to store it as a MetaName.
I didn't completely understood this part. Where do I find this method and how can I store it?
3) in the show_results method I will display the correct property, "h1titletag", instead of the title. That sound's pretty easy after
I hope I'm not disturbing too much with all this questions!
Thank you again,
>From: Peter Karman [mailto:email@example.com]
>Sent: Friday, April 13, 2007 02:29 PM
>To: 'Swish-e Users Discussion List'
>Subject: Re: [swish-e] modifying swish-e result title
>Rasael Bervini Monkow scribbled on 4/13/07 4:13 PM:
>> Oppz.. it is not that old! I guess that's only the file revision:
>> $Id: swish.cgi.in,v 1.22 2006/10/05 13:34:46 karman Exp $
>> However I found out that I can change the search object by using the $search->set_structure( $structure_bits ); function.
>> Now, what I need to figure out is where I have to put this line, I can't find it anywhere in the source code/configuration!
>well at least you've got a modern version. :)
>that structure bit is not what you want. that sets the search range.
>You want to store the first <h1> contents under the swishtitle property so it
>will be returned. Or, store <h1> under a different property (probably easier)
>and then return that property instead of swishtitle.
>look at PropertyNames in the
>section. If you have more than one <h1> tagset in your docs, you'll need to set
>up a filter and use the -S prog method to capture the <h1> you want and store it
>as a MetaName.
>Peter Karman . http://peknet.com/ . peter(at)not-real.peknet.com
>Users mailing list
Users mailing list
Received on Fri Apr 13 18:33:05 2007