How can I hide content from the search in Confluence?

Evening All,

I want to hide the content of a page from the search but can't find any way of doing so. I want the content to remain visible on the page however, and the page must still be visible to all those with the correct permissions.

The page itself has dozens of links (to non-Confluence and internal addresses) with plenty of words that just clutter up the search results.

I've tried the Code macro but that doesn't do it, and none of the other macros seem suitable.

Cheers.

4 answers

1 accepted

There is no way to exclude a page from showing up in the Confluence search. You could either use a more configurable search engine and replace Lucene with it, or maybe try excluding that particular document from the results with a little JavaScript trickery in the SERPs decorator.

Matthew, thanks, I was hoping you wouldn'y say that, but it's what I thought. There ought to be a hide macro. :)

Cheers.

We also have a feature request CONF-33161 raised to address that :).

If you're using the documentation theme and restricting searches to a single space, a workaround is available by creating the page as part of another space.

You could then use the Excerpt and Excerpt Include macros to import the whole page into your main space. It would still appear in the search results for all spaces - but not for the individual space.

Alex,

Good idea, but unfortunately that would make the process of creating and updating the content much more complicated, and we don't want to make it harder for users than it needs to be. It's a very neat idea though.

What I need is an 'Exclude from search' macro. :)

Cheers.

This is an old post so you might know about this now. But there's a Visibility macro available where content on a page can be hidden and customized so that only specific people or groups can see it: https://marketplace.atlassian.com/plugins/net.customware.confluence.plugin.visibility

0 vote

I'm wondering if you could create an Archive parent at the Space root, and then apply either a group or individual permission to the tree that hides it from all Confluence users except a select few.

Surely pages that are hidden wouldn't be indexed by confluence, particularly if they didn't have any incoming links to them.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

763 views 23 12
Join discussion

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