Skip to main content.
home | support | download

Back to List Archive

Re: using UndefinedXMLAttributes

From: <moseley(at)not-real.hank.org>
Date: Tue Jun 03 2003 - 13:07:01 GMT
On Mon, Jun 02, 2003 at 04:23:27PM -0700, garg@zeesource.net wrote:
> 
> I'm trying to include XML attributes as indexed words
> by putting 
> 
> UndefinedXMLAttributes index
> 
> in the conf file. For some reason, however, my attribute
> is not getting indexed.
> 
> For example, for this simple xml file:
> 
> <?xml version="1.0" ?>
> <Person ID="test001">
> <Description>
> This is a test.
> </Description>
> </Person>
> 
> the word 'test001' is not indexed.

moseley@bumby:~$ cat c
UndefinedXMLAttributes index
DefaultContents XML2
MetaNames person.id

moseley@bumby:~$ swish-e -c c -i 1.xml -T indexed_words -v0
    Adding:[1:person.id(10)]   'test001'   Pos:3  Stuct:0x1 ( FILE )
    Adding:[1:swishdefault(1)]   'this'   Pos:8  Stuct:0x1 ( FILE )
    Adding:[1:swishdefault(1)]   'is'   Pos:9  Stuct:0x1 ( FILE )
    Adding:[1:swishdefault(1)]   'a'   Pos:10  Stuct:0x1 ( FILE )
    Adding:[1:swishdefault(1)]   'test'   Pos:11  Stuct:0x1 ( FILE )


-- 
Bill Moseley
moseley@hank.org
Received on Tue Jun 3 13:07:07 2003