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 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
Published Thursday in Marketplace Apps

Tips on how to choose the best estimation method for your planning

Planning and grooming sessions all come with their own sets of rules. Team members meet to estimate stories or other work items, all according to an agreed-upon process. And with every session comes ...

71 views 0 11
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