Confluence Search Box Macro

Hi Everyone,

does anybody know how to restrict the search to the current page?



3 answers

I don't think you change the behavior of the main search field, but you can add a search field on your page and set it to only search certain pages and/or labels.

Hi Milo, how can you add search field to a page?

There are at least three included or free search macros: Livesearch Page Tree Search Search Box Each has its own parameters for what to search. Page Tree Search is probably the best option for searching just the page it's on, as long as there are no child pages. The other two could be used to search a single page, but only if it is the only page in a specific space.

Why not just use Ctrl+F in your browser?

0 votes
Steven Behnke Community Champion Jul 20, 2015

The old Lucen options to search on urlPath are broken. This used to let us search on a specific page. We are waiting for CQL to be rolled out to the site search, it hasn't happened yet.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

1,355 views 2 13
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