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?

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.
himanshuAccepted solution
Adobe Employee
November 6, 2023

This should work

 

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

3 replies

lukasz-m
Community Advisor
Community Advisor
November 5, 2023

Hi @cprogramkarthick,

You can use wildcard in query to achieve your goal, like this:

 

path=/content nodename=*archive*

 

Please also explore official predicates documentation for more information:

Translate
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 🙂

Translate
himanshuAdobe EmployeeAccepted solution
Adobe Employee
November 6, 2023

This should work

 

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