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.

3 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

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,799 views 26 10
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