Configure test suggestions

Last updated Tuesday, March 13, 2018 in Sitecore Experience Platform for Administrator, Developer
Keywords: Configuration, Testing

The sitecore_suggested_test_index index stores the tests that Sitecore has suggested and displays them in the Suggested Tests list. The default configuration defines a crawler that uses /sitecore/content as the root location in the content tree to start from when it populates this index.

This default configuration ensures that the crawler indexes all content. However, it can sometimes mean that additional content items that you are not interested in seeing in this list are included. For example, if Sitecore EXM is installed, the default location for the EXM items means that all these items are included in the index. This makes the list less useful.

Therefore, we recommend that you change the root location for the crawler to the root of the navigable site content. If you have multiple sites, you can add additional crawlers for each site.

For example, if you have the following content structure, you want to limit the suggested tests to the navigable content, or the content below the two home items:

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

In this situation, to configure two crawlers:

  1. Navigate to the App_Config\Include folder.
  2. If you are using Lucene, open the Sitecore.ContentTesting.Lucene.IndexConfiguration.config file, or if you are using Solr, open the Sitecore.ContentTesting.Solr.IndexConfiguration.config file.
  3. Change the crawler configuration to the following:
    <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>

Send feedback about the documentation to docsite@sitecore.net.