Skip to main content.
home | support | download

Back to List Archive

Re: searching XML documents

From: Peter Karman <karman(at)not-real.cray.com>
Date: Mon Apr 05 2004 - 14:38:41 GMT
Please CC: the list when you ask questions; that way others can learn.

swishe wrote on 4/2/04 1:18 PM:


> I suppose that we are not talking about the same thing.
> We don't know if it is possible to search with and without attributes
>   e.g. swish-e -w key=value    and swish-e -w value
> when using config directives
>    UndefinedMetaTags auto
>    UndefinedXMLAttributes auto


all text is indexed under SOME metaname (as Bill noted). If you want a 
default search to look in all metanames, or a specific metaname, you 
need to do something like this:
XML:
<record>
	<title>foo</title>
</record>

config:
UndefinedMetaTags auto
MetaNameAlias swishdefault record

then a search for

swish-e -w foo
or
swish-e -w title=foo

should both work.

Bill, please correct me if I'm wrong.

pek

-- 
Peter Karman - Software Publications Engineer - Cray Inc
phone: 651-605-9009 - mailto:karman@cray.com
Received on Mon Apr 5 07:38:42 2004