jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Shoener" <mshoe...@softwareapps.net>
Subject RE: Query syntax comparing against multiple property values
Date Mon, 14 Sep 2009 13:19:57 GMT
Tried it and same result, nothing returned.

Any other ideas? 


Best Regards,

Michael Shoener
Support Staff
Software Application Services, Inc.


-----Original Message-----
From: Savvas Triantafyllou [mailto:savvas.triantafyllou@gmail.com] 
Sent: Saturday, September 12, 2009 12:53 PM
To: users@jackrabbit.apache.org
Subject: Re: Query syntax comparing against multiple property values

Hi,

have you tried

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


BR,

Savvas

2009/9/11 Michael Shoener <mshoener@softwareapps.net>

> I am trying to figure out the correct Xpath query for the following 
> SQL
> query:
>
>        SELECT hfs:description, hfs:formname FROM hfs:file WHERE 
> CONTAINS(.,
> 'testing')
>
> 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.
>
>
>


Mime
View raw message