The Search macro searches your Confluence site based on search terms specified in the macro code, and displays the results on the wiki page.
On this page:
To insert the search macro into a page using the Macro Browser,
|
Once you've found the search macro and have added the required parameter values, click 'insert' to add it to your page. |
In the example below, we assume that you want to search for all pages and other content types which contain the term 'my_query'.
What you need to type |
What you will get |
|---|---|
{search:query=my_query} |
Parameter |
Required? |
Default |
Description |
|---|---|---|---|
Search Terms |
yes |
none |
The search terms which this macro will use to generate its results.
|
Maximum Number of Results |
no |
10 |
Set a limit to the number of search results displayed. |
Restrict to this Space Key |
no |
all |
Specify the key of the space you want to search in. Note that this is case sensitive. |
Content Type |
no |
all |
Specify the content type. The content types are: page, comment, blogpost, attachment, userinfo (the content of user profiles only), spacedesc (the content of space descriptions only) and mail. |
Last Modified |
no |
all |
Specify a period of time in weeks, days, hours and/or minutes, to see the content modified within that time frame. For example:
|
Restrict to this Username |
no |
all |
Specify the username of a Confluence user, to show only content created or updated by that user. |
Display a maximum of 20 results.
{search:query=my_query|maxLimit=20} |
Global space: Search within the Doctemp space only.
{search:query=my_query|spacekey=Doctemp} |
Personal space: Search within jsmith's space only.
{search:query=my_query|spacekey=~jsmith} |
Search within comments only.
{search:query=my_query|type=comment} |
Search for content modified in the last one week and two days.
{search:query=my_query|lastModified=1w 2d} |
Search within content created or updated by jsmith only.
{search:query=my_query|contributor=jsmith} |
When a user views the page containing the Search macro, the search results will show only pages and other content types for which the user has 'View' permission. |
Livesearch Macro
Searching Confluence
Working with Macros
Take me back to the Confluence User's Guide.