Is there a way to prevent some topics in Confluence from showing up in search results?

I have a set of topics at the root level of a space that I use as my "inclusions library." These topics are all preceded with an underscore in the topic name (like _integration note). I want to prevent these from showing up in the search results for that space. I can't restrict viewing on the pages because then they won't display in the topics where they're included. Is there a way to configure search within that space to ignore topics that are preceded by an underscore?

1 answer

I had same problem and solved it by naming the pages with spaces in between every letter so "_integration note" would become "_i n t e g r a t i o n n o t e".

I have the same issue as Phil. How did including spaces solve the issue?

If a user searches for "integration," then that wouldn't return i n t e g a t i o n because there weren't any spaces in the original search term. While I a clever work around, it would break my current includes when I changed the topic titles, and I would have to go back through and update every use of the include macro. I would prefer something more programmatic, like configuring the space tree to only search children of the home page topic, or to skip over topics that are preceded with an underscore.

I did not think of this solution until I had the same issue where users were finding my inclusion pages in their search results. If you change a page name, Confluence will update all links to that page, but as you noted, it will not update any page names within a macro (although I think it should). I chose to use this naming convention going forward with new pages and keep to old ones as they were (there weren't that many). There were a couple that became problematic, so I had to find those include macros and update them manually.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Dec 18, 2018 in Confluence Cloud

Happy holidays from our team to yours!

Hi Community!  2018 was filled with changes for our team, both big and small, and we've taken a lot of time to both celebrate our wins and recognize areas of improvement. One thing that we're a...

469 views 3 18
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you