You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

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

Usage

What you need to type

What you will get

{search:query=my_query}

Found 0 search result(s) for my_query.

You can refine your search by using operators such as 'AND' and 'OR'. For example:

{search:query=my_query1 AND my_query2}

For more information, take a look at the documentation on the Confluence search syntax.

Optional Parameters

Here is a list of the optional parameters. There are further usage examples below.

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. Note that this is case sensitive.

 3

type

all

Specify the content type. The content types are: page, comment, blogpost, attachment, userinfo, spacedesc, mail.

 4

lastModified

none

Specify a time period.

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

{search:query=my_query|maxLimit=x}

2. Specifying the key of the space you want to search

{search:query=my_query|spacekey=Doctemp}

3. Specifying the content type

{search:query=my_query|type=comment}

4. Specifying 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}

Permissions

Search results will include only pages and other content types to which you have 'View' permission.

RELATED TOPICS

Livesearch Macro
Searching Confluence
Working with Macros

Take me back to Confluence User Guide

  • No labels