Skip to main content.
home | support | download

Back to List Archive

Re: 'swishdescription' not a PropertyName

From: Bill Moseley <moseley(at)>
Date: Mon Jul 08 2002 - 19:55:48 GMT
At 12:34 PM 07/08/02 -0700, Guido Adam wrote:
>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
      <title>Main Title</title>
    some text
    <title>extra title text</title>

    $~/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
Received on Mon Jul 8 20:01:06 2002