共用方式為


Confluence cloud Graph 連接器的結果配置

Confluence cloud Graph 連接器可讓您的組織為 Confluence 內容編制索引。 設定連接器並從 Confluence 網站編制資料索引之後,使用者就可以在 Microsoft Search 中搜尋這些內容。

若要設定搜尋結果頁面,您需要:

  1. 設定 垂直搜尋
  2. 設定 搜尋結果類型

在本檔中,我們提供了設定 Confluence 雲端連接器結果配置所需的範例結果配置 JSON。

開始之前

您必須已設定 Confluence cloud Graph 連接器。 若要依原樣取用範例結果配置 JSON,您必須選取下列屬性以使用所述 的搜尋架構編制索引。

注意事項

  • 需要擷取 搜尋屬性,才能在搜尋結果範本中顯示內容。 屬性也可以有其他搜尋屬性。
屬性 需要搜尋架構屬性
標題 檢索
URL 檢索
UpdatedByName 檢索
UpdatedOn 檢索
內容 Content 屬性

結果配置

在此範例中,您的搜尋結果看起來會像這樣:

Confluence 雲端連接器的版面配置範例。

以下是配置的相關聯 JSON 檔案:

{
    "type": "AdaptiveCard",
    "version": "1.3",
    "body": [
        {
            "type": "ColumnSet",
            "columns": [
                {
                    "type": "Column",
                    "width": "auto",
                    "items": [
                        {
                            "type": "Image",
                            "url": "https://searchuxcdn.blob.core.windows.net/designerapp/images/DefaultMRTIcon.png",
                            "horizontalAlignment": "center",
                            "size": "small"
                        }
                    ],
                    "horizontalAlignment": "center"
                },
                {
                    "type": "Column",
                    "width": "stretch",
                    "items": [
                        {
                            "type": "ColumnSet",
                            "columns": [
                                {
                                    "type": "Column",
                                    "width": "auto",
                                    "items": [
                                        {
                                            "type": "TextBlock",
                                            "text": "[${Title}](${Url})",
                                            "weight": "bolder",
                                            "size": "medium",
                                            "maxLines": 3,
                                            "color": "accent"
                                        }
                                    ],
                                    "spacing": "none"
                                }
                            ],
                            "spacing": "small"
                        },
                        {
                            "type": "TextBlock",
                            "text": "[${Url}](${Url})",
                            "spacing": "small",
                            "weight": "bolder",
                            "color": "dark"
                        },
                        {
                            "type": "Container",
                            "items": [
                                {
                                    "type": "TextBlock",
                                    "text": "**${UpdatedByName}** modified {{DATE(${UpdatedOn})}}",
                                    "spacing": "small",
                                    "$when": "${UpdatedByName!='' && UpdatedOn!=''}"
                                },
                                {
                                    "type": "TextBlock",
                                    "text": "Modified on {{DATE(${UpdatedOn})}}",
                                    "spacing": "small",
                                    "$when": "${UpdatedByName=='' && UpdatedOn!=''}"
                                },
                                {
                                    "type": "TextBlock",
                                    "text": "Modified by __${UpdatedByName}__",
                                    "spacing": "small",
                                    "$when": "${UpdatedByName!='' && UpdatedOn==''}"
                                }
                            ],
                            "spacing": "small"
                        },
                        {
                            "type": "TextBlock",
                            "text": "${ResultSnippet}",
                            "maxLines": 2,
                            "wrap": true,
                            "spacing": "small"
                        }
                    ],
                    "spacing": "medium"
                }
            ]
        }
    ],
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "$data": {
        "UpdatedOn": "2019-09-25T06:08:39Z,SHORT",
        "ResultSnippet": "Marketing team at Contoso.., and looking at the Contoso Marketing documents on the team site. This contains the data from FY20 and will taken over to FY21...Marketing Planning is ongoing for FY20..",
        "UpdatedByName": "Amanda Brady",
        "Url": "https://modernacdesigner.azurewebsites.net",
        "Title": "Contoso Marketing Analysis - Q3 FY18"
    }
}

資源

自訂搜尋結果頁面

管理搜尋結果版面配置