How to search for page names that has the word 'archive' in it using Query Builder? | Community
Skip to main content
Level 2
November 5, 2023
Solved

How to search for page names that has the word 'archive' in it using Query Builder?

  • November 5, 2023
  • 2 replies
  • 887 views

I have a lot of pages under /content path that has names like archive, archive1, archive-test, test-archive, etc.

I tried using the below Query Builder queries but it doesn't seem to work.

 

path=/content
nodename=archive

 

(and)

 

type=cq:Page
path=/content
group.property=nodename
group.property.value=archive
group.property.operation=like
p.limit=-1


Is there a way to find all the pages with names that has the text 'archive' in it?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by himanshu

This should work

 

path=/content type=cq:Page nodename=*archive* operation=like

2 replies

lukasz-m
Community Advisor
Community Advisor
November 5, 2023
Level 2
November 6, 2023

I tried doing as suggested with the below. It keeps searching and nothing is happening after that.

 

path=/content
nodename=*archive*

 

Will explore the suggested documentation on predicates. Thanks so much for the response 🙂

himanshuAdobe EmployeeAccepted solution
Adobe Employee
November 6, 2023

This should work

 

path=/content type=cq:Page nodename=*archive* operation=like