---
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


---

# Automatic search query resubmission

# Automatic search query resubmission {#ariaid-title1}

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

When a search query returns too few results, AI Search automatically modifies and resubmits it with the goal of returning at least the desired number of results.
Search administrators configure the minimum number of desired results per search query using the Search Results Limit field in search application configurations. For more details, see [Create a search application configuration for AI Search](https://servicenow-prod.fluidtopics.net/ljbY_GIQptsC7CJcY65Hbw "Create a search application configuration to specify AI Search as the search engine for a ServiceNow AI Platform application. Select a search profile for the application to use. Configure the application's settings for refinement and display of search results.").

## AND-to-OR search query resubmission {#auto-query-resubmission-ais__section_ywg_x14_knb}

When a search query with conjunctive terms or phrases returns insufficient results, AI Search resubmits it with the default Boolean operator changed from AND to OR and displays results for the modified query.

For example, if a query for <kbd class="ph userinput">hotel "conference room" suite</kbd> matches no results, AI Search resubmits it as <kbd class="ph userinput">hotel OR "conference room" OR suite</kbd>. This less-restrictive query may match more results than the original query.  
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, AI Search doesn't resubmit search queries in this way because the initial search already treats all query terms and phrases as though separated by the <kbd class="ph userinput">OR</kbd> operator.

When automatically resubmitting a search query in this way, AI Search adds a minimum match count restriction to the OR expression. The modified query only returns results that match at least half (rounded up) of the terms separated by OR operators. This restriction improves
query performance and provides more relevant results.

For example, suppose a search query for <kbd class="ph userinput">laptop can't access wi-fi network</kbd> returns no results. AI Search automatically resubmits the query as <kbd class="ph userinput">laptop OR can't OR access OR wi-fi OR network</kbd>. Only records that match at least three of the five query terms appear as results for the
resubmitted search.

## Conditions for automatic search query resubmission {#auto-query-resubmission-ais__section_c5v_5lx_3nb}

Automatic search query resubmission ignores search queries that meet any of the following conditions.

* The original search query only includes a single term.
* The original search query includes 8 or more terms and returns at least one search result.
{#auto-query-resubmission-ais__ul_ckp_2jx_3nb}

