jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Shoener" <mshoe...@softwareapps.net>
Subject Query syntax comparing against multiple property values
Date Fri, 11 Sep 2009 16:46:48 GMT
I am trying to figure out the correct Xpath query for the following SQL

	SELECT hfs:description, hfs:formname FROM hfs:file WHERE CONTAINS(.,

The above query returns all records where either the hfs:description or
hfs:formname contains the value "testing".

I tried the following in Xpath but it does not work:

	//element(*, hfs:file)/(@hfs:description |
@hfs:formname)[jcr:contains(., 'testing')]

What am I missing in my query to make it not return any records?

Best Regards,

Michael Shoener
Support Staff
Software Application Services, Inc.

View raw message