Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

How to specify nested “not” operation in specific group id in AEM?

Avatar

Avatar
Validate 1
Level 3
Anderson_Hamer
Level 3

Likes

13 likes

Total Posts

50 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 5
View profile

Avatar
Validate 1
Level 3
Anderson_Hamer
Level 3

Likes

13 likes

Total Posts

50 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 5
View profile
Anderson_Hamer
Level 3

27-12-2019

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


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

Replies

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,428 likes

Total Posts

3,300 posts

Correct Reply

937 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,428 likes

Total Posts

3,300 posts

Correct Reply

937 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

27-12-2019

try with below query

 

path=/content/course/
type=cq:Page
group.1_group.1_daterange.lowerBound=2019-06-12T13:39:19.358Z
group.1_group.1_daterange.property=jcr:content/xyz

group.1_group.2_daterange.upperBound=2019-06-12T13:39:19.358Z
group.1_group.2_daterange.property=jcr:content/abc

group.1_group.p.not=true

group.2_group.relativedaterange.property=jcr:content/courseStartDate
group.2_group.relativedaterange.lowerBound=0
group.p.and=true

Avatar

Avatar
Validate 1
Level 3
Anderson_Hamer
Level 3

Likes

13 likes

Total Posts

50 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 5
View profile

Avatar
Validate 1
Level 3
Anderson_Hamer
Level 3

Likes

13 likes

Total Posts

50 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 5
View profile
Anderson_Hamer
Level 3

01-01-2020

I found that we should use nested group in order to specify operation on specific group id

 

path=/content/course/
type=cq:Page
p.limit=-1
1_property=jcr:content/event

group.1_group.1_group.daterange.lowerBound=2019-12-26T13:39:19.358Z
group.1_group.1_group.daterange.property=jcr:content/xyz

group.1_group.2_group.daterange.upperBound=2019-12-26T13:39:19.358Z
group.1_group.2_group.daterange.property=jcr:content/abc

group.1_group.3_group.relativedaterange.property=jcr:content/courseStartDate
group.1_group.3_group.relativedaterange.lowerBound=0
group.1_group.2_group.p.not=true
group.1_group.1_group.p.not=true

Avatar

Avatar
Validate 1
Level 3
Anderson_Hamer
Level 3

Likes

13 likes

Total Posts

50 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 5
View profile

Avatar
Validate 1
Level 3
Anderson_Hamer
Level 3

Likes

13 likes

Total Posts

50 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 5
View profile
Anderson_Hamer
Level 3

01-01-2020

No, it is not applying operator on given group id. Posted solution, Please check it