---
sourceDocument: Xanadu ServiceNow AI Platform Administration
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/platform-administration

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu ServiceNow AI Platform Administration

ft:clusterId :

    - platadm

bundleId :

    - platadm

workflow :

    - Platform


---

# Boolean operators allow conditional search results

# Boolean operators allow conditional search results {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 minutes to read

Construct complex searches using Boolean AND, OR, and NOT operators in global text searches.  
You can use Boolean operators in all global text search interfaces:

* Global text search field
* Knowledge Base search
* List search for text
{#c_BooleanOperators__ul_dhq_p5p_w4}  
Note:  
Boolean operators are case-sensitive. As an example, the system recognizes <kbd class="ph userinput">OR</kbd> as a Boolean operator, but treats <kbd class="ph userinput">Or</kbd> and <kbd class="ph userinput">or</kbd> as regular search terms.  
{#c_BooleanOperators__table_zg4_fvp_w4__entry__2}

| Operator | Description |
|-|-|
| OR or vertical bar symbol (\|) | Finds a match if any of the search terms exist in a document (a union of sets). For example, to find documents that contain either email password or just email, you can search for <kbd class="ph userinput">"email password" OR email</kbd> or <kbd class="ph userinput">"email password"|email</kbd>. Using the .or. operator, which the system uses when you create OR condition groups for fields other than Keywords with the condition builder, can produce different results. For example, this filter searches for records with short descriptions containing SSO and then searches separately for records with short descriptions containing SAML:Figure 1. Searching with the filter choice lists Note: By design, you can only have one Keywords filter condition per condition set. If you select the Keywords field in a filter choice list, the OR button for that filter condition becomes unavailable. Similarly, if you construct an OR filter condition, the Keywords field becomes unavailable in the filter choice lists. |
| AND | Finds a match if all search terms exist in a document (an intersection of sets). For example, to find documents that contain both "CPU load" and "10 minutes", search for <kbd class="ph userinput">"CPU load" AND "10 minutes"</kbd> By default, Zing applies an AND operator between all search terms not separated by OR or NOT operators. For example, if you enter <kbd class="ph userinput">email server down</kbd> as your search terms, the system searches for <kbd class="ph userinput">email AND server AND down</kbd>. Note: For Knowledge Base searches, if the default 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 system property. |
| NOT, minus (-), or exclamation point (!) | Excludes documents that contain the search term after the NOT operator (a difference of sets). For example, to find documents that contain "CPU load" but not "10 minutes", you can search for <kbd class="ph userinput">"CPU load" NOT "10 minutes"</kbd> or <kbd class="ph userinput">"CPU load" -"10 minutes"</kbd> or <kbd class="ph userinput">"CPU load" !"10 minutes"</kbd>. NOT must be a stand-alone term in your search. For example, <kbd class="ph userinput">atom NOT ion</kbd> excludes the term ion, but <kbd class="ph userinput">NOTION</kbd> searches for the term notion. The minus and exclamation point symbols must immediately precede the search term that you want to exclude. For example, a search for <kbd class="ph userinput">email !Joe</kbd> excludes Joe but a search for <kbd class="ph userinput">email ! Joe</kbd> includes Joe. You can't use the NOT operator to exclude all terms in your search. For example, the following search returns no results: <kbd class="ph userinput">NOT "10 minutes"</kbd>. |
[Table 1. Boolean operators]

{#c_BooleanOperators__table_zg4_fvp_w4}
**Related concepts**   

* [List search finds records from the current table](https://servicenow-prod.fluidtopics.net/i11DWUbzhgR_QDSXRf_cRQ "Search records from a table list view.")
* [Quotation marks allow exact phrase searches](https://servicenow-prod.fluidtopics.net/MQLuENoHbdsAzbmxXy422w "Wrap search terms in quotation marks to search for an exact phrase consisting of one or more words.")
* [Wildcard characters allow searching for patterns and variations](https://servicenow-prod.fluidtopics.net/JeHZpFfVkIA37py0kFABDQ "Expand search results to match any non-space character. Zing supports both single-character and multiple-character wildcards.")  
**Related tasks**   

* [Enable or disable the Zing junk filter](https://servicenow-prod.fluidtopics.net/uRfT_eyzPQgiKfalLNxbXA "When its junk filter is enabled, Zing doesn't index or search for 2-digit numbers or single-character words (unless they are Chinese or Japanese characters). You can enable or disable the junk filter for individual tables.")
* [Debug Zing](https://servicenow-prod.fluidtopics.net/X4avBnz7n3FUNFT4CiydaA "Debugging messages create a log of search processes as they occur. These messages may help administrators configure optimal performance settings.")  
**Related topics**   

* [Knowledge properties](https://www.servicenow.com/docs/access?context=r_KnowledgeProperties&version=xanadu&pubname=xanadu-servicenow-platform&ft:locale=en-US)

