Confluence 4.0 : Search Macro
This page last changed on Jun 25, 2010 by halatas@atlassian.com.
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:
Usage with the Macro BrowserTo 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. Usage with the Wiki Markup EditorIn the example below, we assume that you want to search for all pages and other content types which contain the term 'my_query'.
ParametersWhen editing, you can click on the macro placeholder and choose Edit to display the parameters for this macro in the Macro Browser. Parameters are options that you can set for Confluence macros to control the content or format of the macro output. The table below lists parameters for this macro that can be set in the Macro Browser.
1. Setting a limit to the number of search results displayedDisplay a maximum of 20 results. {search:query=my_query|maxLimit=20} 2. Specifying the key of the space you want to searchGlobal 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} 3. Specifying the content typeSearch within comments only. {search:query=my_query|type=comment} 4. Specifying a time period in which the content was last modifiedSearch for content modified in the last one week and two days. {search:query=my_query|lastModified=1w 2d} 5. Limiting the search results to content created or modified by a specific userSearch within content created or updated by jsmith only. {search:query=my_query|contributor=jsmith}
RELATED TOPICSLivesearch Macro Take me back to the Confluence User's Guide. |
![]() |
Document generated by Confluence on Sep 19, 2011 02:36 |