---
title: "テスト提案の設定"
slug: "configure-test-suggestions"
abstract: "インデックスクローラーを関連するコンテンツのみを含めるように設定してください。"
---
# テスト提案の設定

sitecore\_suggested\_test\_indexインデックスはSitecoreが提案したテストを保存し、提案テストリストに表示します。デフォルト構成では、*/sitecore/content*をコンテンツツリーのルート位置としてクローラーとして定義し、インデックスを入力する際に開始します。

このデフォルト設定により、クローラーはすべてのコンテンツをインデックス化します。しかし、リストに興味のない追加のコンテンツ項目が含まれていることもあります。例えば、Sitecore EXMをインストールしている場合、EXMアイテムのデフォルト位置はこれらすべてのアイテムがインデックスに含まれることを意味します。これによりリストの有用性が低下します。

したがって、クローラーのルート位置をナビビゲート可能なサイトコンテンツのルートに変更することを推奨します。複数のサイトがある場合は、各サイトごとに追加のクローラーを追加できます。

例えば、以下の内容構成がある場合、提案されるテストをナビゲート可能な内容、またはhome項目の下の内容に限定したいです。

/sitecore/content/site1/settings
/sitecore/content/site1/global content
/sitecore/content/site1/home
/sitecore/content/site2/settings
/sitecore/content/site2/home
/sitecore/content/exm

この場合、2つのクローラーを設定するには:

1.  App\_Config\\Includeフォルダに移動します。
    
2.  Sitecore.ContentTesting.Solr.IndexConfiguration.configファイルを開け。
    
3.  クローラー構成を以下に変更します:
    
    <locations hint="list:AddCrawler">
     <crawler type="Sitecore.ContentTesting.ContentSearch.SpecificSitecoreItemCrawler, Sitecore.ContentTesting">
     <Database>master</Database>
     <!-- Limit this parameter to the root of the content of the site. -->
     <Root>/sitecore/content/site1/home</Root>
     </crawler>
     <crawler type="Sitecore.ContentTesting.ContentSearch.SpecificSitecoreItemCrawler, Sitecore.ContentTesting">
     <Database>master</Database>
     <!-- Limit this parameter to the root of the content of the site. -->
     <Root>/sitecore/content/site2/home</Root>
     </crawler>
    </locations>