Can you control the query to use phrase searching?
swish-e -w 'name=("Tom Jones")'
.should probably fail to return results. (Windows: swish-e -w "name=(\"Tom
In other words, phrase searching will almost surely achieve your request of
not matching "Tom Jones," but I expect that you *do* want to be able to
match "Tom Smith" and the documentation isn't clear on what will be placed
in the automatic metaname from child tag content. I haven't used the
UndefinedMetaTags option myself, so I'm not sure how whitespace gets munged,
but you would probably want to check whether
swish-e -w 'name=("Tom Smith")'
.returns the expected result.
You might want to look at the
XMLClassAttributes directive to see about synthesizing a firstnamelastname
If this doesn't do what you want, you'll probably need to write some XSLT or
something that will combine your names in the manner you expect them to be
[mailto:firstname.lastname@example.org] On Behalf Of Tony Seddon
Sent: Thursday, November 18, 2010 7:57 AM
Subject: [swish-e] How to search within XML tags where XML tag appears
I have an XML structure like...
In the config I have UndefinedMetaTags auto
If I search for Tom Jones using...
swish-e -w "name=(Tom Jones)"
It matches the XML above although it should not.
How can I devise a search that will not match Tom Jones in the above XML ?
Users mailing list
Received on Thu Nov 18 09:08:20 2010