Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to limit a search to parent pages?

Stephanie Hurt
Contributor
August 28, 2023

Is there a way to limit a search to a CHILD SPACE (i.e., a parent page and all the pages below it)? I know of no way to do that. I realize we could create LABELS to help limit searches, but where labels haven't been created yet, that's a LOT of labels to create to do a search. We're hoping there's a simple way to say "Search this page and all the child pages below it" ... 

2 answers

1 accepted

0 votes
Answer accepted
Linh Pham_Ricksoft_Inc
Community Champion
August 28, 2023

Hi @Stephanie Hurt 

There are 2 ways I'd recommend:

1. Use Confluence advanced search, you'll be able to narrow down by parent page by filtering "Content under"

Screenshot 2023-08-29 at 2.41.48 PM.png 

Screenshot 2023-08-29 at 2.41.40 PM.png

2. Essentially the same process, you can also insert the "page tree search" macro on a page, then users can directly search content within a page tree:

Screenshot 2023-08-29 at 2.49.39 PM.png

I hope this helps!

Cheers,

Linh

Stephanie Hurt
Contributor
August 29, 2023

Thanks so much.  I will try these out.

Like Linh Pham_Ricksoft_Inc likes this
0 votes
Aron Gombas
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 29, 2023

Confluence has a lesser-known structured query language called CQL.

Using CQL, you could search the descendants of the page with the ID=123 for the text fragment "foobar" using a query:

ancestor=123 and text ~ "foobar"

See the CQL documentation. This tool is extremely powerful!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events