How to Use Contains Operator in Event Automation
What is a broad match?
Broad match is a search system rule that displays results related to variations of the entered keyword, rather than just the exact word.
What is an exact match?
An exact match ensures that your target keyword exactly matches a search query, enabling your content to display in search results with the same meaning or intent. This option provides the most control over who sees your content, but it may not reach as many searches as a phrase or brand matches.
How is an exact match different from a broad match?
Broad match and exact match differ in the range of search queries that can trigger the display of your content. Broad match keywords offer greater
flexibility by generating variations and synonyms of your chosen keywords, thereby increasing potential search queries. In contrast, exact match keywords restrict your content to appearing only for queries that exactly match your keywords.
Contains Operators in BoldDesk
The contains operator allows you to search for specific words or phrases. You can use up to 25 comma-separated values, with no limit on the length of each phrase or word. This operator allows you to check whether a specific word or phrase is present in a sentence, making it useful for filtering and locating relevant information in text.
Steps to find the operator
- Navigate to Admin > Automation > Ticket Automation or Auto Assignment or Create Trigger or Update Trigger.
- You can find the contains operators under the fields - Subject, Description, and Description text.
Types of Contains Words Operator:
The following are some of the different operators
on word search in BoldDesk:
Contains |
Verifies whether the given word or phrase exists within the field. |
Does not contain
|
Verifies whether the given word or phrase is absent from the field. |
Contains all (exact match)
|
Verifies that the field contains every specified word or phrase, each surrounded by spaces. |
Contains one of (exact match)
|
Verifies that at least one of the specified words or phrases is present in the field, each surrounded by spaces. |
Does not contain all (exact match)
|
Confirms that none of the words or phrases specified in the condition are present in the field and are surrounded by spaces. |
Contains (Broad Match)
The "contains" operator checks if any of the given words or phrases appear in the field value, making it ideal for basic text searches.
Example 1 | Field: "The quick brown fox jumps over the lazy dog." Condition: Contains
"fox" Result: True (because "fox" is present in the text)
|
Example 2
| Field: "The quick brown fox jumps over the lazy dog." Condition: Contains ["jump", "fox"]
|
Does Not Contain (Broad Match)
The "Does Not Contain" operator checks if a specific word or phrase is absent from the field value. This is essential for filtering out entries that contain certain terms.
Example 1 |
Field: "The quick brown fox jumps over the lazy dog." Condition: Does Not Contain "cat" Result: True (because "cat" is not present in the text).
|
Example 2
|
Field: "The quick brown fox jumps over the lazy dog." Condition: Does Not Contain "jump" Result: True (because
"jump" is not present in the text) |
Contains All (Exact Match)
The "Contains All (Exact Match)" operator verifies that all the specified words or phrases are present in the field, each separated by spaces. All specified words or phrases must be
present individually.
Example 1 |
Field: "The quick brown fox jumps over the lazy dog." Condition: Contains All (Exact Match) ["quick", "fox", "dog"] Result: True (because all the specified words "quick", "fox", and "dog" are present) |
Example 2 |
Field: “foxhole is quick and empty." Condition: Contains All (Exact Match) ["fox", "quick"] Result: false (because "fox" is not a standalone word; it is part of "foxhole") |
Contains One Of (Exact Match)
The "Contains One Of (Exact Match)" operator determines whether any of the specified words or phrases appear in the text. This allows for broader searches where the presence of any listed term is sufficient.
Example 1
|
Field: "The quick brown fox jumps over the lazy dog." Condition: Contains One Of (Exact Match) ["cat", "fox", "elephant"] Result: True (because "fox" is present, fulfilling the condition)
|
Example 2 |
Field: "The foxhole is empty." Condition: Contains One Of (Exact Match) ["fox", "quick"] Result: false (because "fox" is not a standalone word)
|
Does Not Contain All (Exact Match)
The "Does Not Contain All (Exact Match)" operator ensures that none of the specified words or phrases are present in the text. This operator is particularly useful for filtering out entries that should not contain any of the listed terms.
Example 1
|
Field: "The quick brown fox jumps over the lazy dog." Condition: Does Not Contain All (Exact Match) ["cat", "elephant"] Result: True (because neither "cat" nor "elephant" is present in the text)
|
Example 2 |
Field: "The quick brown fox jumps over the lazy dog." Condition: Does Not Contain All (Exact Match) ["jump", "cat"] Result: True (because neither "cat" nor "jump" is present in the text. Even though “jumps” is present in the field it's not an standalone word)
|