Skip to main content.
home | support | download

Back to List Archive

Re: swish.cgi results no path in title

From: <moseley(at)not-real.hank.org>
Date: Sat Sep 13 2003 - 17:23:10 GMT
On Sat, Sep 13, 2003 at 06:39:34AM -0700, Aaron Bazar wrote:
> Hi,
> 
> I have run into an issue with the swish.cgi in version 2.4... Some html
> pages that I index do not have a <title> tag .. as far as I know, if there
> is no title then swish is supposed to use the docpath as the title. However,
> this is not happening. I end up with nothing in the title... consequently
> there is no link- just the rank and description. I have been trying to find
> where in the perl code this is, with no luck. Basically, if there is no
> swishtitle, I would like to put in a default like "Untitled" (or even the
> docpath like it is supposed to work)

Try and support what you are saying with examples.  Like this:

moseley@laptop:~$ cat 1.html
<html>
<head>
<title></title>
</head>
<body>
bodyword
</body>

moseley@laptop:~$ swish-e -i 1.html -v0
moseley@laptop:~$ swish-e -w bodyword
# SWISH format: 2.4.0-pr1
# Search words: bodyword
# Removed stopwords: 
# Number of hits: 1
# Search time: 0.003 seconds
# Run time: 0.087 seconds
1000 1.html "1.html" 63
.


-- 
Bill Moseley
moseley@hank.org
Received on Sat Sep 13 17:23:23 2003