如何在AEM中的特定组ID中指定嵌套的“非”操作? [英] How to specify nested “not” operation in specific group id in AEM?
问题描述
我有一个稍微复杂的谓词,在其中需要进行一些嵌套的非操作
I have a little complex predicator in which I need to have some nested not operation
path=/content/course/
type=cq:Page
group.1_daterange.lowerBound=2019-06-12T13:39:19.358Z
group.1_daterange.property=jcr:content/xyz
group.2_daterange.upperBound=2019-06-12T13:39:19.358Z
group.2_daterange.property=jcr:content/abc
group.3_relativedaterange.property=jcr:content/courseStartDate
group.3_relativedaterange.lowerBound=0
group.p.not=true
我不想包括组1和组2的结果,因此我使用的是NOT运算,不幸的是,这在根级别而不是在group(n)级别有效。基本上我需要为组1和组2设置不操作,例如 not(group 1& group 2)和组3
是否有适合我情况的语法? ?
I don’t want to include the result of group 1 and group 2 hence I am using NOT operation, unfortunately this works at root level, not at level group(n) level. Basically I need to set not operation for group 1 and group 2, like not(group 1 & group 2) and group 3
Is there any syntax which will do suite my case ?
我尝试使用以下语法,但它只是忽略了它。
I tried with below syntax but it is simply ignoring it.
group.1_group.p.not=true
group.2_group.p.not=true
推荐答案
您可以将前两个谓词归为一组,然后不仅将其应用于该组。以下查询对您有用吗?
You can group the first two predicates in one group and then apply NOT only to that group. Does the below query work for you?
path=/content/course/
type=cq:Page
1_group.1_daterange.lowerBound=2019-06-12T13:39:19.358Z
1_group.1_daterange.property=jcr:content/xyz
1_group.2_daterange.upperBound=2019-06-12T13:39:19.358Z
1_group.2_daterange.property=jcr:content/abc
1_group.p.not=true
2_group.1_relativedaterange.property=jcr:content/courseStartDate
2_group.1_relativedaterange.lowerBound=0
这篇关于如何在AEM中的特定组ID中指定嵌套的“非”操作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!