This documentation relates to an early version of Confluence.
View this page in the current documentation or visit the current documentation home.

(outdated) Search Macro

All Versions
Click for all versions
Confluence 2.5.4 to 2.5.8 Documentation

Index

This page is outdated. Please see new page.


 Search Confluence, and include the results in the page. The search macro behaves identically to Confluence's built-in site search.

Usage:
{search:my_query}
OR
{search:my_query|maxLimit=maxLimit}

Parameter Required Default Description
query yes none search query (what you enter in the search box)
maxLimit no none sets the maximum number of search results to return
type no all except mail sets the kind of content to search
spaceKey no none Limit the search to the contents of a particular space

Available types:

type parameter Will search:
all all content, including mail
page only pages
blogpost only news
mail only mail
attachment only attachments
comment only comments
userinfo only user profiles
spacedesc only space descriptions

Supplying no type will result in the search returning results from all content except mail.

Example:
{search:confluence|maxLimit=5}

gives:

Found 5 search result(s) for confluence.

confluence
null
Dec 31, 1969
Confluence rocks
Jan 11, 2008
Confluence Trial
null
Dec 31, 1969
Confluence Admin
Dec 31, 1969
BL Confluence
Dec 31, 1969
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.