>Date: Wed, 24 Oct 2007 10:19:12 -0500
>From: Peter Karman <firstname.lastname@example.org>
>Subject: Re: [swish-e] Change the indexed 'title'
>On 10/24/2007 10:00 AM, email@example.com wrote:
>> Quick question. I've scanned around the listserv and documentation - >> but I see no direct answer to this question. I want to be able to >> change the 'title' that is being indexed. Right now;
>> swishtitle defaults to whatever is contained in the <title></title> >> tags on
>> the html pages.. I want to be able to set it so that swishtitle defaults to
>> whatever is contained in a 'different' tag in my html files; such as
>> whatever is a <a href=""></a>, or a <strong></strong> tag.
>I believe "title" is the hardcoded string used in parser.c so you can't
>configure the tag to look for directly unless you change the C source and
>You could probably work around it by defining a PropertyName for the tag you
>want to use as the title and returning that instead of swishtitle in your
>However, if I were faced with that requirement, I would probably opt to
>my docs before handing to swish-e's -S prog option. Unless I needed to also
>capture the existing <title> content, in which case I would probably add a
>PropertyName and just return that instead of swishtitle.
>Peter Karman . peter(at)not-real.peknet.com . http://peknet.com/
On a few pages I would need to return the 'title' content too... How would I go about doing both; I would assume different indexes for different 'types' of pages (i.e., i can index all the files that I need to capture the <strong></strong> as the title, i can index all the files i need to capture the <a href=""></a> and then I can separately index all the files I need to capture the <title></title>...) Very new to Swish-E; so not really sure where to start or what to start breaking first ;-).
Thanks for the info!
Users mailing list
Received on Wed Oct 24 12:54:26 2007