Boolean operators allow conditional search results

Include or exclude search terms from global text searches.

All global text search interfaces support boolean operators.
  • Global text search field
  • Knowledge Base search
  • List search for text

For Knowledge Base searches, if the AND search returns poor results, the search is automatically re-run with the OR operator. Administrators can configure the knowledge base search to always use OR by modifying the glide.knowman.search.operator property.
Note: Boolean operators are case-sensitive. For example, OR is an operator while or is a search term that may be a stop word.
Table 1. Boolean operators
Operator Description
OR or vertical bar symbol (|) Finds a match if any of the terms exist in a document (a union using sets). For example, to find documents that contain either "email password" or just "email", search for "email password" OR email or "email password" | email

When you use filter lists on keywords, OR and | produce the same results. However, using the .or. operator, which the system uses when you create multiple conditions with the condition builder, can produce different results.

For example, these two filters produce the same result by searching for records that contain either SAML or SSO:

Figure 1. Searching with the OR operator
Searching with the OR operator
Figure 2. Searching with the pipe operator
Searching with the pipe operator
But this filter may produce a different result as it searches for records containing SAML and then searches again for records containing SSO:
Figure 3. Searching with the filter choice lists
Searching with the filter choice lists
AND

Finds a match if all terms exist in a document (an intersection of sets). For example, to find documents that contain "CPU load" and "10 minutes", search for "CPU load" AND "10 minutes"

By default, Zing applies an AND operator between all search terms regardless of whether the user entered them or not. For example, the system converts a search for the text "email server down" to [Keywords] [are] [email] AND [Keywords] [are] [server] AND [Keywords [are] [down].

NOT, minus (-), or exclamation point (!) Excludes documents that contain the term after the NOT operator (a difference of sets). For example, to find documents that contain "CPU load" but not "10 minutes", search for "CPU load" NOT "10 minutes", "CPU load" -"10 minutes", or "CPU load" !"10 minutes"

The NOT operator cannot be used with just one term. For example, the following search returns no results: NOT "10 minutes"

NOT must be a stand-alone word. For example, atom NOT ion excludes the term ion. Whereas NOTION searches for the term notion.

Minus and exclamation point must immediately precede the excluded term. For example, email !Joe excludes the term Joe but email ! Joe includes the term Joe.