Configure Confluence Live Search when using the Global theme


If you are using Confluence, you might have come across an annoying behaviour when using the type-ahead search that appears in the left navigation bar - the search bar will search across all available “Spaces” in the Confluence site which on a big shared site, can result in a lot of spurious hits. The Confluence documentation states that this is by design when using the default theme.

Thankfully, there is a way to fix the search so that it only searches within a particular Confluence" “Space”. This trick does require you to have at least Space Admin rights though. Navigate to Space tools > Look and Feel and then look for the tab “Sidebar,header and footer”. If there is a {livesearch} macro listed in the sidebar, change it as follows:

{livesearch:spacekey=MY_CONFLUENCE_SPACE|placeholder=Any placeholder text}

Once you make this change, the type-ahead search will automatically be restricted to a single Confluence “space”. This is also documented in the Confluence documentation

Tested on: Confluence Server 6.6.9