It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How do i search only within a space?

Hello,

When I navigate to a space then use the search, it search all of Confluence.  How do I get it to search only within the Space I am in?

Thanks,

Mr. V

4 answers

Hi Victor,

you can control the space where the search operates from the the search result page - see here:

image2016-4-1 16:32:50.png

The quick search box at the top right corner always searches everything.

Why is this only on the search results page? This means I have to first run a completely BS search just to get to the page where I want to search for something specific.

The absence of an "Advanced Search" CTA of any kind has always perplexed and frustrated us.

Like 2 people like this
2 votes
Ann Worley Atlassian Team Aug 15, 2017

Victor, if you are running your own server you may add the Livesearch Macro to the space sidebar using the wiki markup example toward the bottom of this page: Livesearch Macro

You would go to Space Tools>Look and Feel>Sidebar, Header and Footer to add the macro to the sidebar.

What I don't understand is that this use to be an option for a space admin, to restrict search to the current wiki space instead of defaulting to a global search. Why did Atlassian remove this option from Confluence?

Telling people to add YASF (Yet Another Search Field) to the pages, just confuses most end users and adds unnecessary elements to the UI.

Like 1 person likes this

Hi,

There is also a live search macro that you can add to a page which you can set to only search the current space. The problem is that it lives on the page so if you want it to appear on every page you would need to add it to every page. The other option would be to have a custom theme where you can add this macro to the left navigation or somewhere else on the UI.

How do you get the live search macro only to search the space that you are in?

Prehaps just bookmark the constructed search url for the space :

https://<root>/confluence/dosearchsite.action?cql=space+%3D+%22<space name>%22

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published Thursday in Confluence

Confluence CVEs and common questions

Two vulnerabilities have been published for Confluence Server and Data Center recently: March 20, 2019 CVE-2019-3395 / CVE-2019-3396 April 17, 2019 CVE-2019-3398 The goal of this article is...

299 views 0 12
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