The Search macro searches your Confluence site based on search terms specified in the macro code, and displays the results on the wiki 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'.
必要な入力項目 |
表示結果 |
|---|---|
{search:query=my_query} |
You can refine your search query 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.
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 period of time in weeks, days, hours and/or minutes, to see the content modified within that time frame. For example:
|
5 |
contributor |
すべて |
Confluence ユーザーのユーザー名を指定し、そのユーザーによって作成または更新されたコンテンツのみを表示します。 |
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 Confluence User Guide