Skip to main content.
home | support | download

Back to List Archive

Re: search in xml files.

From: Bill Moseley <moseley(at)not-real.hank.org>
Date: Fri Apr 15 2005 - 14:23:35 GMT
On Fri, Apr 15, 2005 at 07:08:59AM -0700, dasoso@alumni.uv.es wrote:
>   Hi all. 
> 
>   Can Swish-e search for every word between the xml tags? For example
> 1.xml:
> <book>
>   <title> Tom Sawyer </title>
> </book>
> 
> 2.xml:
> <person>
>    <name> Tom Smith </name>
> </person>
> 
> 
>    And search swish-e -w Tom and get both files without telling
> swish-e the metaname.


Yes.  Unless you tell it to do otherwise with a MetaName setting in
your config file.

Keep in mind that

    -w Tom

is just a shortcut for

    -w swishdefault=Tom

So, it's not much different than saying:

    -w book=Tom

Do you have swish installed?  You can often use the "-T indexed_words"
to get answers to your questions.



-- 
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
   swish-e@sunsite.berkeley.edu
Received on Fri Apr 15 07:23:35 2005