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
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...

475 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