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

This widget could not be displayed.

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?

This widget could not be displayed.

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: https://answers.atlassian.com/questions/276731/controlling-what-gets-displayed-in-search-results-in-confluence

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published yesterday in Confluence

Add-on evaluation with confluence templates

Atlassian market place contains number of Apps/Addons which improves the capability of out of the box Atlassian products. It is good to follow a plugin evaluation process before install add-ons. So t...

34 views 5 3
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