Using faceting feature might lead to high memory usage or site outage

  • Sitecore content search uses faceting in order to arrange search results into categories based on indexed terms. When using faceting, users are presented with the indexed terms along with the number of matching documents.

    Faceting makes it easier for users to explore search results, as it allows you to navigate to specific search result categories.

    However, building a facet on a field that contains dozens of different terms, for example the item's creation date field, can lead to high memory usage or a site outage.

    You typically use the facet feature in the following scenarios:

    1. When searching in the Content Editor using the Search tab:

      Content Editor Search

    2. When browsing for an image using the Select media dialog:

      Select Media Dialog
    3. When searching in custom code using Sitecore content search Linq.
  • If you experience high memory usage or site outages when using facets, disable the facet calculation functionality for fields that have a large variety of parameters.

    If the issue happens when using the Sitecore client, use the guidelines below:

    • Search tab facets are defined in each database under the /sitecore/system/Settings/Buckets/Facets folder and can be disabled by setting the Enabled field value to be unchecked.
    • Select Media dialog facets are defined in the core database under the /sitecore/client/Applications/Dialogs/SelectMediaDialog/PageSettings/Facets folder and can be disabled by deleting the correspondent items.

    If you encounter any difficulties with identifying the specific facets that are causing the issue, please contact Sitecore Support and refer to the current article.

Applies to:

CMS 7.0 Initial Release - 8.2 Update-3

CMS 8.2 Update-4

January 06, 2016
November 28, 2019

Reference number:

423445, 451348, 96751, 435548, 96880, 451348, 96751, 146428

Keywords: 

  • Performance,
  • Search and Indexing