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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Prehaps just bookmark the constructed search url for the space :
https://<root>/confluence/dosearchsite.action?cql=space+%3D+%22<space name>%22
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Appears to use Confluence Query Language (CQL) : https://developer.atlassian.com/server/confluence/advanced-searching-using-cql/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How do you get the live search macro only to search the space that you are in?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For an end user in case there is no macro to limit search within the space.
This is how you would do it (using the cloud edition). Click in the search field and press <enter> or select "Confluence Advanced Search". In this view you can use space as search filter.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you have admin rights and the markdown macro installed on confluence cloud, put this in the "space tools" -> "look and Feel" ->Header box
{markdown}
<script type="text/javascript">
AJS.toInit(function() {
AJS.$("#quick-search fieldset").append(AJS.$('<input type="hidden" name="searchQuery.spaceKey" value="YOURSPACENAME" />'));
});
</script>
{markdown}
Substitute YOURSPACENAME with you space name
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
when you say "YOURSPACENAME" do you mean the full name of the space? or the space key?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.