Customizing what is shown on search results page

I was wondering if there is a way to customize what appears on the search results page by customizing the actual search result page or the code that displays the results on the page. We want to not have certain pages appear in search results and all these pages start with an underscore (ex. _page title). Instead of going and customizing the search engine itself to not index these pages, I am wondering if it would be possible to cut it off at the moment when it goes to display these pages on the page itself. In simple terms, i imagine having some if statement checking to see if the page title starts with an underscore. If it does then it skips it, if it doesn't then it displays it. I am just wondering if this is possible to do and which file would this need to be added to if it is possible? Thanks

2 answers

We have a similar problem and are very interested if you received an answer to this? If we start the page names with a certain character or if they have a particular label, can we prevent the pages appearing in the search results? Does anyone have a great idea how we can do this?

Hi, I another similar question to this one and got some answers. Hopefully one of them is helpful to you. Here is the link to the question/answers:

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 Monday in Confluence

Calling all marketing teams who use Confluence - we want to hear from you!

Hi Community! me again 🙂 If you’re a marketing team using Confluence, we want to hear your story! How did you start using Confluence? What are your use cases? What have been some of the benefits?...

144 views 3 3
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