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

用途

必要な入力項目

表示結果

{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.

いいえ

パラメーター

既定

説明

 1

maxLimit

なし

表示される検索結果数の制限を設定します。

 2

spacekey

すべて

Specify the key of the space you want to search in. Note that this is case sensitive.

 3

type

すべて

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

 4

lastModified

なし

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}

権限

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

関連トピック

Livesearch Macro
Searching Confluence
Working with Macros

Take me back to Confluence User Guide

  • ラベルなし