Forums

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

How can I hide content from the search in Confluence?

Mick Davidson
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.
September 5, 2013

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

1 vote
Answer accepted
Matthew J. Horn
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.
September 5, 2013

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.

Mick Davidson
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.
September 8, 2013

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

Cheers.

2 votes
Deividi Luvison
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.
April 2, 2014

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

0 votes
jaredleonmorgs July 3, 2018

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.

0 votes
RPT Admin
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.
September 9, 2013

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.

Mick Davidson
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.
September 9, 2013

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.

R Donato
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.
October 15, 2014

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
TAGS
AUG Leaders

Atlassian Community Events