(info) You need to edit in 'Wiki Markup' mode to include macros in your page.

The Search Macro does an inline site search and displays the results in the page.

Search Macro

What you need to type

What you will get

{search:query=my_query}

Found 0 search result(s) for my_query.


Optional Parameters

Optional Parameters

No 

parameter

Default

Description

 1

maxLimit

none

Set a limit to the number of search results displayed

 2

spacekey

all

Specify the key of the space you want to search in

 3

type

all

Specify the content type

 4

lastModified

none

Specify a time period

1. Set a limit to the number of search results displayed

{search:query=my_query|maxLimit=x}

2. Specify the key of the space you want to search in

{search:query=my_query|spacekey=Doctemp}

3. Specify the content type (page, comment, blogpost, attachment, userinfo, spacedesc)

{search:query=my_query|type=comment}

4. Specify a time period in which the content was last modified

For example, 3d = modified in the last 3 days, 1m3d = modified in the last month and three days)

{search:query=my_query|lastModified= 2d}

Note

Search results will not include those from pages to which you do not have 'View' permission.

RELATED TOPICS

Searching Confluence
Working with Macros

Take me back to Confluence 2 User Guide

  • No labels