Stop search results from bringing up attached images.

Hello,

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,

Derek

1 answer

1 accepted

Accepted Answer
6 votes

Hi,

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
Community showcase
Posted Tuesday in Featured Groups

Tuesday tips & tricks: What is the Atlassian Community?

It's officially Tuesday, which means it's officially time for another tip to help you better navigate this space we call the Atlassian Community. 😄 I got a great question from community member, Sa...

135 views 6 8
View post

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