Skip to main content.
home | support | download

Back to List Archive

Re: search in the same tag.

From: Peter Karman <peter(at)not-real.peknet.com>
Date: Wed Aug 24 2005 - 12:53:22 GMT
Carmelo Carchedi scribbled on 8/24/05 7:48 AM:

> But if i want to search in all class ?
> I need to make:
>  swish-e -w art.foo=(red and brown) OR art.bar=(red and brown) ecc. ecc.
> 
> or it's possible a search like:
>  swish-e -w art.*=(red and brown)


no. swish-e doesn't support wildcard'd metanames. You'd have to explicitly name 
them. Alternately, you might do this:


<adoc>
<art>
<art class="foo">red green gray</art>
<art class="bar">brown blue yellow</art>
</art>
</adoc>

XMLClassAttributes class
MetaNames art.foo art.bar art
IndexContents XML2 .xml


which would let you do:

swish-e -w 'art=(red and green)'  # success
swish-e -w 'art=(red and brown)'  # success
swish-e -w 'art.foo=(red and brown)'  # fail

-- 
Peter Karman  .  http://peknet.com/  .  peter(at)not-real.peknet.com
Received on Wed Aug 24 05:53:23 2005