Maximum number of terms for expression filtering

Companies can enforce Expression Filtering (EF) to reduce the risk of employees sending inappropriate content, like profanity, which would negatively impact their firm's reputation or compliance rules. 

The maximum number of terms for an active Expression Filtering policy is 1000 terms.

How Terms Are Counted

Only active policies are taken into consideration when calculating the number of terms in use. For these active policies, only those that have rules of variable TEXT_MATCH are collected and their associated dictionaries IDs retrieved. 

A policy has rules and dictionaries. Dictionaries are only associated with a rule. That means when a dictionary is added to a policy, this dictionary is then associated with all the rules under the policy.

Figure 1 is an example of a policy where both rules refer to the same dictionary ID (highlighted in red):

{
'_id' : ObjectId('5b775df097a1c000018caaf1'),
'policyId' : '5b775df097a1c000018caaf1',
'version' : '1.3',
'name' : 'msgRegexPolicy',
'creatorId' : '68719476737',
'scopes' : [
'Internal'
],
'appliesTo' : [
{
'dataType' : 'Messages',
'action' : 'LogOnly',
'rules' : [
{
'id' : 'ab7df28f-c1cd-4b4a-85af-eab4f69e7146',
'type' : 'TEXT_MATCH',
'name' : '',
'textMatchConfig' : {
'dictionaries' : [
{
'dictId' : '5b775dc097a1c000018caaed',
'version' : '1.1',
'name' : '1regex'
}
],
'countUniqueOccurrences' : 1,
'applicableFileTypes' : []
}
}
]
},
{
'dataType' : 'FileContent',
'action' : 'LogOnly',
'rules' : [
{
'id' : 'c2493873-6632-4e9e-a167-f520b132477f',
'type' : 'TEXT_MATCH',
'name' : '',
'textMatchConfig' : {
'dictionaries' : [
{
'dictId' : '5b775dc097a1c000018caaed',
'version' : '1.1',
'name' : '1regex'
}
],
'countUniqueOccurrences' : 1,
'applicableFileTypes' : [
'PDF',
'WORD',
'EXCEL',
'POWERPOINT',
'ZIP',
'TXT'
]
}
}
]
}
],
'active' : true,
'deleted' : false,
'creationDate' : '1534549488972',
'lastUpdateDate' : '1534806661682',
'lastDisabledDate' : '1534552416437',
'systemPolicy' : false
}

Figure 1 A Policy With Two Rules

Note: Total active terms are calculated for both messages and files. For example, if a dictionary has 10 terms, the Expression Filtering for these 10 terms is applied to both messages and files. This means the total active terms for the policy is 20