jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <marcel.reuteg...@gmx.net>
Subject new GQL query syntax
Date Fri, 05 Dec 2008 12:57:48 GMT
Torgeir Veimo wrote:
> You mean content nodes?

no, context nodes (XPath lingo)

> I was hoping that there was a way to search any attribute. I can of
> course do some hacks where as I concatenate the property values of all
> the attributes and put the string into a 'catchall' property, but i
> think such a search would be better handled in the indexing system.

you don't need such a 'catchall' property. using XPath you would write:
//*[jcr:contains(., 'text')]

which is simply 'text' in GQL. See JavaDoc [0].

regards
 marcel

[0]
http://svn.apache.org/repos/asf/jackrabbit/branches/1.5/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/query/GQL.java

Mime
View raw message