Live search on a published site

The Live search macro is how a Confluence home page invites people to find things. On a published site it now does the same job, searching the site's own pages instead of Confluence.


#How it behaves

Styles

Both Confluence styles render.

Results

Up to five as you type, then a See more search results link that opens the site's own search.

Space

Respected, including currentSpace(), which means the space the page is in.

Labels and content type

Respected.

A scope outside the site

A space or label the site does not publish shows No results.


#In a preview

In a staging preview the box is greyed out with the note "Search works on the published site". Search runs against the live site's index, so it starts working once the site is published.


#A few things worth knowing

  • Search only finds pages that are on the site. Pages kept off with a label or the hide macro are never results.

  • In the Macros list for your site, the macro appears as Live Search (Confluence).

  • A new page shows in results after the next publish, not the moment it is saved in Confluence.



Search the site, from the site.