Skip to main content.
home | support | download

Back to List Archive

Re: [swish-e] PropertyNames not being indexed

From: Bill Moseley <moseley(at)not-real.hank.org>
Date: Fri Feb 09 2007 - 06:26:07 GMT
On Fri, Feb 09, 2007 at 01:51:01PM +1000, Matt Paine wrote:
> The problem I have is with the PropertyName in the config file.....
> 
> I'll provide a simple example and see if I'm incorrect with my 
> assumptions (probably, cause we all know why you shouldn't assume).
[...]

> IndexFile test.index
> DefaultContents HTML*
> 
> PropertyNames id type
> MetaNames id type
> --------------2: doc.html ------->8---------------------
> 
>         <h1>hello</h1>
>         <id>1</id>
>         <name>hi</name>
>         <type>product</type>
> 
> ------------------------8<--------------------------
> ------------3: command ------->8---------------------
> [matt@test swish-test]$ /opt/swish-e-2.4.5/bin/swish-e -c test.conf -i 
> doc.html  -T indexed_words -T properties

Well, you have provided great detail, but I'm not seeing the same
thing.  It's odd.


$ cat c 
ParserWarnLevel 0
MetaNames id type
PropertyNames id type

$ cat doc.html
<h1>hello</h1>
<id>1</id>
<name>hi</name>
<type>product</type>

$ swish-e -c c -i doc.html -T indexed_words properties -v0
    Adding:[1:swishdefault(1)]   'hello'   Pos:5  Stuct:0x29 ( HEADING BODY FILE )
    Adding:[1:id(10)]   '1'   Pos:8  Stuct:0x89 ( META BODY FILE )
    Adding:[1:swishdefault(1)]   'hi'   Pos:12  Stuct:0x9 ( BODY FILE )
    Adding:[1:type(11)]   'product'   Pos:14  Stuct:0x89 ( META BODY FILE )
          swishdocpath: 6 (  8) S: "doc.html"
          swishdocsize: 8 (  4) N: "64"
     swishlastmodified: 9 (  4) D: "2007-02-08 22:18:43 PST"
                    id:12 (  1) S: "1"
                  type:13 (  7) S: "product"

you can see both the prop and metas are as expected.



-- 
Bill Moseley
moseley@hank.org

Unsubscribe from or help with the swish-e list: 
   http://swish-e.org/Discussion/

Help with Swish-e:
   http://swish-e.org/current/docs

_______________________________________________
Users mailing list
Users@lists.swish-e.org
http://lists.swish-e.org/listinfo/users
Received on Fri Feb 9 01:25:26 2007