At 12:34 PM 07/08/02 -0700, Guido Adam wrote:
>Hello,
>
>using the prog feature, I am getting an odd error:
>
> [gadam@gox xaw_marvin]$ swish-e -V
> SWISH-E 2.1-dev-25
> [gadam@gox xaw_marvin]$ swish-e -c ./prog.conf -S prog
> err: PropertyNameAlias - name 'swishdescription' not a PropertyName
That's because the config is parsed line-by-line, so "swishdescription"
isn't defined yet. It's defined once you use StoreDescription, so move
those lines up before the PropertyNameAlias line.
> PropertyNameAlias swishtitle title
So if you are indexing HTML that would expect to see
<meta name="title" content="some title">
It also would allow a fake title tag in the body if you are using HTML2
parser. For example:
$cat c
PropertyNameAlias swishtitle title
DefaultContents HTML2
$cat 1.html
<html>
<head>
<title>Main Title</title>
</head>
<body>
some text
<title>extra title text</title>
</body>
</html>
$~/swish-e/src/swish-e -c c -i 1.html -v0 -T properties
swishdocpath: 6 ( 6) S: "1.html"
swishtitle: 7 ( 37) S: "Main Title some text extra title text"
swishdocsize: 8 ( 4) N: "0000000000116"
swishlastmodified: 9 ( 4) D: "2002-07-08 12:50:16"
> PropertyNameAlias swishdocpath url
> PropertyNameAlias swishdescription summary
> StoreDescription TXT 400
> StoreDescription HTML <body> 400
> StoreDescription HTML2 <body> 400
You need to tell swish which parser to use for your HTML files.
For example:
IndexContents HTML2 .htm .html
--
Bill Moseley
mailto:moseley@hank.org
Received on Mon Jul 8 20:01:06 2002