Stop search results from bringing up attached images.


Hoping someone will be able to help with this.

When using the search macro, results show image names that have been attached to our pages. We would like the ability to use the search but have the results only show spaces, so the users are not bogged down with image files that are not useful.

Any help is much appreciated.

Thanks in advance,


1 answer

1 accepted

6 votes


I have played around with the search box macro in Confluence to see if I could come up with something that would be fitting for your situation. I'm afraid there isn't a solution to your situation, unless you do not mind the concessions to be done to the search as I will describe in the next paragraph.

When you have inserted the search box macro, you can hover over the the icon that gets created, and choose edit.
If you then scroll down until the point you reach "Object type", you can define here to which objects your search should be limited. In your situation you could choose for the object "pages" to limit your search. This however excludes blog posts and comments. Attachments are treated as an object, but I have not been able to find any method to EXCLUDE an object from a search box, nor to include multiple objects.

I have created an improvement request for adding excluding objects or including multiple objects to a search box. You can find it here

Suggest an answer

Log in or Join to answer
Community showcase
Alexey Matveev
Published Saturday in Jira

How to run Jira in a docker container

Everything below is tested on Ubuntu 17.10. I prefer to use Jira in a docker container because: 1. I can install Jira with a couple of commands. 2. I can start and stop Jira just by starting and s...

194 views 6 8
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot