---
sourceDocument: Xanadu ServiceNow AI Platform Administration
sourceDocumentLink: https://www.servicenow.com/docs/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


---

# Schedule suggestion pruning

# Schedule suggestion pruning {#ariaid-title1}

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

Search Suggestions limits the number of auto-complete suggestions and search suggestions stored in the Search Suggestion \[sys_search_suggestion\] table to 500,000. A periodic pruning job removes the least relevant suggestions
and increases the overall relevancy of suggestions.

## Before you begin

Role required: admin

## About this task

By default, the pruning job runs once a week and limits the Search Suggestion \[sys_search_suggestion\] table to 500,000 suggestions. Once the table reaches that limit, the pruning job removes the lowest-rated auto-complete suggestions and search suggestions to keep the maximum number of suggestions at 500,000. Pruning the least relevant suggestions improves the relevancy of the suggestions.

How often you run the pruning job might depend on how frequently you [generate suggestions from the Search Suggestion table](https://www.servicenow.com/docs/wBDQE~5d2ly06VTK84Ix7A "Specify when to run the script that builds auto-complete suggestions and search suggestions from user search strings."), and how quickly the table exceeds 500,000 suggestions.

## Procedure

1. Navigate to AllSystem DefinitionScheduled Jobs.
2. Open the Prune Search Suggestions job.
3. On the Scheduled Script Execution form, edit the following fields.  
   {#limit-number-of-suggestions__table_d2f_d4x_kpb__entry__2}

   | Field | Description |
   |-|-|
   | Run | Frequency of execution for the pruning job. To execute the job manually, select On Demand and select Execute Now. |
   | Day | Day of the week to run the pruning job. |
   | Time zone | Time zone to use when interpreting the Time field value. |
   | Time | Time of day to run the pruning job. Specify hours (00--23), minutes (00--59), and seconds (00--59). |
   | Repeat interval | Interval between executions of the pruning job when Run is set to Periodically. Specify days (01--07, where 01 is Sunday), hours (00--23), minutes (00--59), and seconds (00--59). |
   | Conditional | Script to run when executing the pruning job. |
   [ ]

   {#limit-number-of-suggestions__table_d2f_d4x_kpb}  
   Note:  
   The fields on the form change with the choice of the Run value.
4. Select Update.

*[\>]: and then


