Confluence 3.0 のサポートは終了しています。
ドキュメントの最新バージョンを確認してください。
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 Browser
To insert the search macro into a page using the Macro Browser,
- Open your desired Confluence page, then click the 'Edit' button. The 'Edit Page' mode opens.
- Next, click the Macro Browser icon on the editor toolbar. The Macro Browser will open in the middle of the screen.
- In the Macro Browser, type the name of your desired macro into the search box at the top right of the window. Macros with a matching name will appear in the centre pane. Click on the desired macro to see its options screen. Here, you can set the macro parameters then click 'insert' to put the macro into the page.
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 Editor
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} |
Found 0 search result(s) for my_query. |
パラメーター
Parameters are settings for Confluence macros that allow the user to control their content or presentation. The table below lists relevant parameters for this macro.
Parameter names are displayed differently in the macro browser interface and in wiki markup. Below, parameter names used in the macro browser are indicated in Bold text, while their equivalents in wiki markup are indicated in (
bracketed) text. If the latter is not shown, then in wiki markup, the parameter's name should be omitted and only its value should be added immediately after the colon symbol (:).
パラメーター |
必須かどうか |
既定 |
説明 |
|---|---|---|---|
Search Terms |
はい |
なし |
The search terms which this macro will use to generate its results.
|
Maximum Number of Results |
いいえ |
10 |
表示される検索結果数の制限を設定します。 |
Restrict to this Space Key |
いいえ |
すべて |
Specify the key of the space you want to search in. Note that this is case sensitive. |
Content Type |
いいえ |
すべて |
Specify the content type. The content types are: page, comment, blogpost, attachment, userinfo (the content of user profiles only), spacedesc (the content of space descriptions only) and mail. |
Last Modified |
いいえ |
すべて |
Specify a period of time in weeks, days, hours and/or minutes, to see the content modified within that time frame. For example:
|
Restrict to this Username |
いいえ |
すべて |
Confluence ユーザーのユーザー名を指定し、そのユーザーによって作成または更新されたコンテンツのみを表示します。 |
1. Setting a limit to the number of search results displayed
Display a maximum of 20 results.
{search:query=my_query|maxLimit=20}
2. Specifying the key of the space you want to search
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}
3. Specifying the content type
Search within comments only.
{search:query=my_query|type=comment}
4. Specifying a time period in which the content was last modified
Search 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 user
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 the Confluence User Guide.
