Hi All,
How to use OR operator for two different values of a JCR property?
Please help me with the syntax.
I want to get the results with two different values for cq:template property.
Thanks,
Kishore
Solved! Go to Solution.
Views
Replies
Total Likes
Refer the below queries for example
/jcr:root/content//*[@pageTitle='GeoMetrixx' or @jcr:title='Geometrixx Media']
In the above query i am searching with two properties pagetitle and jcr:title with OR operator.Even AND operator work as well.
/jcr:root/content//*[@cq:template='/libs/cq/core/content/projects/templates/creative-project-management' or @cq:template='/libs/cq/core/content/projects/templates/default'] which searches for cq:template property with 2 different values.
Refer the below doc for more information.
Views
Replies
Total Likes
Refer the below queries for example
/jcr:root/content//*[@pageTitle='GeoMetrixx' or @jcr:title='Geometrixx Media']
In the above query i am searching with two properties pagetitle and jcr:title with OR operator.Even AND operator work as well.
/jcr:root/content//*[@cq:template='/libs/cq/core/content/projects/templates/creative-project-management' or @cq:template='/libs/cq/core/content/projects/templates/default'] which searches for cq:template property with 2 different values.
Refer the below doc for more information.
Views
Replies
Total Likes
Thank you.
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies