AEM query builder , not equals condition

Avatar

Avatar

AnnzRoz

Avatar

AnnzRoz

AnnzRoz

06-03-2020

I wanted to query all the pages with below conditions

  1. should be activated pages
  2. a property(flag) should be set to false
  3. should exclude 3 templates (template a, template  b, template c)

I tried the below query for first 2 conditions, but how to include the third condition?

type=cq:PageContent
path=/content/retail
1_property=flag
1_property.value=false
2_property=cq:lastReplicationAction
2_property.value=Activate
property.and
p.limit=-1
p.hits=full

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831
Arun_Patidar
MVP

06-03-2020

Try with below query

 

type=cq:PageContent
path=/content/retail
1_property=flag
1_property.value=false
2_property=cq:lastReplicationAction
2_property.value=Activate
property.and
group.property=cq:template
group.property.1_value=value1
group.property.2_value=value2
group.property.3_value=value3
group.property.operation=unequals
group.property.or
p.limit=-1
p.hits=full

Answers (0)