KeywordList

Represents a list of keywords used in Experience Cloud site moderation. This keyword list is a type of moderation criteria that defines offensive language or inappropriate content that you don’t want in your site.

Where possible, we changed noninclusive terms to align with our company value of Equality. We maintained certain terms to avoid any effect on customer implementations.

Keep the following things in mind when creating keyword list criteria:

  • Your org can have up to 30 keyword list criteria. This limit is per org, not per Experience Cloud site.
  • A keyword list can have up to 2,000 keywords.
  • Capitalization and trailing punctuation are ignored when matching your keywords to user-generated content. For example, if your criteria includes BadWord, it’s matched when a user types BADWORD or badword.

This type extends Metadata and inherits its fields.

KeywordList components have the suffix .keywords and are stored in the moderation directory of the corresponding package directory. The file name format follows site_name.keyword_list_developer_name.keywords.

Introduced in API version 36.0.

To view, create, edit, and delete a keyword list, you need the Manage Experiences or Create and Set Up Experiences permission. As of Spring ’20 and later, only users with permission to edit moderation rules can access this object.

  • Type: string
  • Required: No
  • Description: A description of the keyword list.
  • Type: Keyword[]
  • Required: No
  • Description: The keywords you want moderate in your Experience Cloud site.
  • Type: string
  • Required: Yes
  • Description: Required. Label for the keyword list.

Keywords in the keyword list.

  • Type: string

  • Required: Yes

  • Description: Required. Keywords you want to moderate.

    • Keywords can only be up to 100 characters and can include letters, numbers, spaces, and special characters.
    • Wildcard characters aren’t supported.

The following is an example of a KeywordList component.

The following is an example package.xml that references the previous definition.

This metadata type supports the wildcard character * (asterisk) in the package.xml manifest file. For information about using the manifest file, see Deploying and Retrieving Metadata with the Zip File.