you would need to add some attributes to your tags and use the
XMLClassAttributes config param. Otherwise, swish-e treats everything in the
<art> tag as a single metaname.
example:
XMLClassAttributes class
MetaNames art.foo art.bar
<adoc>
<art class="foo">red green gray</art>
<art class="bar">brown blue yellow</art>
</adoc>
swish-e -w art.foo=(red and brown) # fails
swish-e -w art.foo=(red and greed) # succeeds
Carmelo Carchedi scribbled on 8/24/05 5:20 AM:
> I have some file xml with more tag with same name
> (like paragraph or article)
> it's possible to make a search of two or more words in the same tag?
> example:
> <adoc>
> <art>red green gray</art>
> <art>brown blue yellow</art>
> </adoc>
> the search must fail if words are in different tags:
> swish-e -w art=(red AND brown)
>
> the search have success if words are in same tag:
> swish-e -w art=(red AND green)
>
--
Peter Karman . http://peknet.com/ . peter(at)not-real.peknet.com
Received on Wed Aug 24 05:38:37 2005