---
sourceDocument: Brazil ServiceNow AI Platform Administration
sourceDocumentLink: https://www.servicenow.com/docs/r/platform-administration

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil ServiceNow AI Platform Administration

ft:clusterId :

    - platadm

bundleId :

    - platadm

workflow :

    - Platform


---

# Search query language

# AI Search query language {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 4 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of AI Search query language

AI Search query language enables ServiceNow customers to create precise search queries using terms, phrases, Boolean operators, and wildcard operators.
This capability helps find records efficiently by controlling how search terms are matched within indexed data.
Show full answer Show less  

## Search query terms and phrases

* **Single-term search:** Finds records containing an exact term (e.g., *conference*), but does not match substrings. Use wildcards to match substrings.
* **Multi-term search:** Finds records containing all specified terms in any order or field (e.g., *conference room*). The default operator can be changed to OR via a system property (glide.ais.query.searchoperator).
* **Quoted phrase search:** Finds records containing the exact phrase with terms in order and in the same field (e.g., *"conference room"*). Linguistic features and wildcards still apply inside quotes.
* Search is case-insensitive.
* HTML/XML content is automatically stripped from search input.

## Boolean search operators

* **OR:** Finds records containing any of the specified terms or phrases.
* **Hyphen (-):** Excludes records containing the term or phrase immediately following the hyphen.
* Note: If the system property is set to OR as the default operator, the OR operator in queries has no additional effect.

## Wildcard matching operators

* **% (single-character wildcard):** Matches any one character at the wildcard position within a term. Must follow at least three non-wildcard characters. Also searches literal matches without wildcards.
* **(string wildcard):** Matches zero or more characters at the wildcard position within a term. Must follow at least three non-wildcard characters. Also searches literal matches without wildcards.
* **(universal wildcard):** Matches all indexed terms and returns all records without relevancy ranking, in an unspecified order.
* Stop words are ignored when expanding wildcard matches.

## Practical implications for ServiceNow customers

Understanding and utilizing these query language features allows customers to tailor search queries for accurate, efficient retrieval of relevant records in AI Search. This aids in building more effective search experiences by controlling term matching, inclusion, exclusion, and pattern matching with wildcards.  
Learn how to construct search queries using terms, phrases, and AI Search query operators.

## Search query terms and phrases {#query-language-ais__section_hsb_4n4_knb}

Specify terms and quoted phrases in the search query to find records that contain the same terms or phrases.  
{#query-language-ais__table_npg_gjn_mnb__entry__2}

| Search query terms | Description |
|-|-|
| <kbd class="ph userinput">conference</kbd> | Single-term search. Finds records that contain the term conference. Note: Search terms don't match substrings of indexed terms. As an example, searching for <kbd class="ph userinput">exam</kbd> finds records that contain the term exam, but not records that contain the term example. To search for substring matches, you can use the <kbd class="ph userinput">%</kbd> or <kbd class="ph userinput">*</kbd> wildcard matching operators. |
| <kbd class="ph userinput">conference room</kbd> | Conjunctive multi-term search. Finds records that contain both of the terms conference and room (an intersection of sets). The search terms can appear in any order or proximity in the record and may appear in different fields. Note: If you set the Boolean search operator to use when a search query includes multiple terms ( glide.ais.query.search_operator ) system property to OR query, this search finds records that contain either of the terms conference or room (a union of sets). |
| <kbd class="ph userinput">"conference room"</kbd> | Quoted phrase search. Finds records that contain the term conference followed immediately by the term room. The search terms must appear in this order and in the same field. Note: Quoting a phrase doesn't disable linguistic features (such as normalization, synonym expansion, and stop word removal) or wildcard operators. For example, a search for the quoted phrase <kbd class="ph userinput">"email acc*"</kbd> expands the wildcard operator normally to find records that contain email account and email access. |
[ ]

{#query-language-ais__table_npg_gjn_mnb}  
AI Search ignores letter case for search query terms and phrases. For example, searching for <kbd class="ph userinput">PIN</kbd> finds records containing PIN and pin.  
Note:  
When processing search query terms, AI Search automatically strips out HTML and XML content by removing strings that start with <kbd class="ph userinput">&lt;</kbd> and end with <kbd class="ph userinput">&gt;</kbd>. As an example, if you enter <kbd class="ph userinput">user &lt;beth.anglin@example.com&gt;</kbd> as your search terms, AI Search only searches for <kbd class="ph userinput">user</kbd>. If you search for <kbd class="ph userinput">&lt;abel.tuter@example.com&gt;</kbd>, AI Search treats the search as empty and returns no results. This behavior isn't configurable.

## Boolean search operators {#query-language-ais__section_xxm_1k5_knb}

Separate query terms and phrases with Boolean operators to override the default matching logic for the search query.  
{#query-language-ais__table_wwl_ll5_knb__entry__2}

| Operator | Description |
|-|-|
| <kbd class="ph userinput">OR</kbd> | Boolean disjunction operator. Finds records that contain any of the terms or phrases separated by <kbd class="ph userinput">OR</kbd>. For example, searching for <kbd class="ph userinput">"conference room" OR suite</kbd> finds records that contain the phrase conference room and records that contain the term suite. Note: If you set the Boolean search operator to use when a search query includes multiple terms ( glide.ais.query.search_operator ) system property to OR query, this operator has no effect because search already treats all query terms and phrases as though separated by the <kbd class="ph userinput">OR</kbd> operator. |
| hyphen (<kbd class="ph userinput">-</kbd>) | Boolean negation operator. Excludes records containing the term or phrase that immediately follows the hyphen. For example, searching for <kbd class="ph userinput">email -"email signature"</kbd> finds records that contain the term email but don't contain the phrase email signature. |
[ ]

{#query-language-ais__table_wwl_ll5_knb}

## Wildcard matching operators {#query-language-ais__section_z3y_hm4_knb}

Use wildcard operators to find records that contain indexed terms matching a wildcard pattern.  
{#query-language-ais__table_nqj_wm5_knb__entry__2}

| Operator | Description |
|-|-|
| <kbd class="ph userinput">%</kbd> | Single-character wildcard operator. Include <kbd class="ph userinput">%</kbd> in a search query term to match any one character in an indexed term. As an example, searching for <kbd class="ph userinput">the%e</kbd> finds results containing wildcard matches such as theme, there, or these. AI Search also evaluates the search with the wildcard operator ignored, to look for literal matches. The non-wildcard operator parts of the search term are treated as a phrase, meaning that they must appear in the same order in the result as they do in the search. As an example, a search for <kbd class="ph userinput">5000%000</kbd> returns results that contain 5000 followed by 000 as well as results that contain wildcard matches like 50007000. Note: The <kbd class="ph userinput">%</kbd> operator must follow a string of three or more non-wildcard characters. For search query terms that don't satisfy this condition, AI Search only returns literal matches. As an example, if you search for <kbd class="ph userinput">99%</kbd>, with only two non-wildcard characters preceding the <kbd class="ph userinput">%</kbd> operator, AI Search only returns results with literal matches for <kbd class="ph userinput">99</kbd>. |
| <kbd class="ph userinput">*</kbd> | String wildcard operator. Include <kbd class="ph userinput">*</kbd> in a search query term to match any string of zero or more characters in an indexed term. As an example, searching for <kbd class="ph userinput">acc*</kbd> finds results containing wildcard matches such as access, account, accrue, accumulate, and accuracy. AI Search also evaluates the search with the wildcard operator ignored, to look for literal matches. The non-wildcard operator parts of the search term are treated as a phrase, meaning that they must appear in the same order in the result as they do in the search. As an example, a search for <kbd class="ph userinput">753*268</kbd> returns results that contain 753 followed by 268 as well as results that contain wildcard matches like 7539268. Note: The <kbd class="ph userinput">*</kbd> operator must follow a string of three or more non-wildcard characters. For search query terms that don't satisfy this condition, AI Search only returns literal matches. As an example, if you search for <kbd class="ph userinput">ad*</kbd>, with only two non-wildcard characters preceding the <kbd class="ph userinput">*</kbd> wildcard operator, AI Search only returns results with literal matches for <kbd class="ph userinput">ad</kbd>. |
| <kbd class="ph userinput">***</kbd> | Universal wildcard operator. Specify <kbd class="ph userinput">***</kbd> as a search query to find all indexed terms and thus all records. Note: AI Search doesn't apply relevancy ranking to <kbd class="ph userinput">***</kbd> queries. Results from <kbd class="ph userinput">***</kbd> queries appear in an unspecified order. |
[ ]

{#query-language-ais__table_nqj_wm5_knb}  
Note:  
When expanding search terms that contain <kbd class="ph userinput">%</kbd> or <kbd class="ph userinput">*</kbd> wildcard operators, AI Search ignores terms defined as stop words. For example, suppose you define the and their as stop words. A search for <kbd class="ph userinput">the*</kbd> won't expand to match the or their, but will still match non-stop word terms such as there and these.

