次の方法で共有


Azure DevOps Wiki Microsoft 365 Copilot コネクタの結果レイアウト

Azure DevOps Wiki Microsoft 365 Copilot コネクタを使用すると、organizationで Azure DevOps サービスから Wiki のインデックスを作成できます。 コネクタとインデックスコンテンツを構成したら、検索結果ページを設定する必要があります。

検索結果ページを設定するには、次の手順を実行する必要があります。

  1. 垂直方向の検索を設定します。
  2. 検索結果の種類を設定します。

このドキュメントでは、Azure DevOps Wiki Copilot コネクタの結果レイアウトを設定するために必要なサンプルの結果レイアウト JSON を提供しました。

使用を開始する前に

Azure DevOps Wiki Copilot コネクタを構成している必要があります。 サンプルの結果レイアウト JSON をそのまま使用するには、前述の 検索スキーマを使用したインデックス作成に次のプロパティを選択する必要があります。

注:

  • 検索結果テンプレートにプロパティを表示するには、検索属性の取得が必要です。 プロパティには、他の検索属性も含めることができます。
プロパティ 検索スキーマ属性が必要
タイトル 取り戻す
RemoteURL 取り戻す
LastPublishedAuthorName 取り戻す
LastPublishedDate 取り戻す
コンテンツ コンテンツ プロパティ
組織 取り戻す
Project 取り戻す
WikiIdentifier 取り戻す

結果のレイアウト

このサンプルでは、検索結果は次のようになります。

Azure DevOps Wiki Copilot コネクタのレイアウトの例。

レイアウトに関連付けられている JSON ファイルを次に示します。

{
    "type": "AdaptiveCard",
    "version": "1.0",
    "body": [
        {
            "type": "ColumnSet",
            "columns": [
                {
                    "type": "Column",
                    "width": "auto",
                    "items": [
                        {
                            "type": "Image",
                            "url": "https://searchuxcdn.blob.core.windows.net/designerapp/images/AzureDevOpsLogo.png",
                            "horizontalAlignment": "Center",
                            "altText": "Not available",
                            "width": "-1px",
                            "size": "Small"
                        }
                    ]
                },
                {
                    "type": "Column",
                    "width": 8,
                    "items": [
                        {
                            "type": "TextBlock",
                            "text": "[${Title}](${RemoteURL})",
                            "color": "Accent",
                            "size": "Medium",
                            "weight": "Bolder"
                        },
                        {
                            "type": "TextBlock",
                            "text": "__${LastPublishedAuthorName}__ modified on {{DATE(${LastPublishedDate})}}",
                            "spacing": "Small"
                        },
                        {
                            "type": "ColumnSet",
                            "columns": [
                                {
                                    "type": "Column",
                                    "width": "stretch",
                                    "items": [
                                        {
                                            "type": "TextBlock",
                                            "text": "__Organization:__ ${Organization}"
                                        }
                                    ]
                                },
                                {
                                    "type": "Column",
                                    "width": "stretch",
                                    "items": [
                                        {
                                            "type": "TextBlock",
                                            "text": "__Project:__ ${Project}"
                                        }
                                    ]
                                },
                                {
                                    "type": "Column",
                                    "width": "stretch",
                                    "items": [
                                        {
                                            "type": "TextBlock",
                                            "text": "__Wiki:__ ${WikiIdentifier}"
                                        }
                                    ]
                                }
                            ]
                        },
                        {
                            "type": "TextBlock",
                            "text": "${ResultSnippet}",
                            "wrap": true,
                            "maxLines": 3,
                            "spacing": "Medium"
                        }
                    ],
                    "horizontalAlignment": "Center",
                    "spacing": "Medium"
                }
            ]
        }
    ],
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "$data": {
    }
}

リソース

検索結果ページをカスタマイズする

検索結果のレイアウトを管理する