내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.
해결됨

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

Avatar

Level 2

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?

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Employee

This should work

 

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

원본 게시물의 솔루션 보기

3 답변 개

Avatar

Community Advisor

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:

Avatar

Level 2

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

Avatar

정확한 답변 작성자:
Employee

This should work

 

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