Set maximum age for searches used in suggestion generation
Set the Auto Flush parameter to limit the age of search strings used to create auto-complete suggestions and search suggestions.
Before you begin
Role required: ais_admin
About this task
The Search Event [sys_search_event] table contains all of the strings used in searches. Scripts use this table to generate search analytics, search suggestions, and auto-complete suggestions. A system property sets the maximum age for records preserved in the table. The default is 180 days, but you can change this number to preserve search events for a shorter or longer duration. Longer durations increase the size of the table and its disk consumption.
Procedure
-
Navigate to the Auto Flush [sys_auto_flush] table's list view.
-
Select All.
-
In the navigation field, enter
sys_auto_flush.list. -
Press Enter.
-
-
Search on
*searchand open the sys_search_event record. -
On the Auto Flush form, edit the Age in seconds value.
The default is 15,552,000 seconds, which is 180 days.
---
title: Set maximum age for searches used in suggestion generation
description: Set the Auto Flush parameter to limit the age of search strings used to create auto-complete suggestions and search suggestions.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/platform-administration/search-suggestions/set-maximum-number-of-search-strings.html
release: brazil
product: Search Suggestions
classification: search-suggestions
topic_type: task
last_updated: "2026-09-10"
reading_time_minutes: 1
breadcrumb: [Configuring Search Suggestions, Search Suggestions, Search administration, Configure core features, Administer the ServiceNow AI Platform]
---
# Set maximum age for searches used in suggestion generation
Set the Auto Flush parameter to limit the age of search strings used to create auto-complete suggestions and search suggestions.
## Before you begin
Role required: ais\_admin
## About this task
The Search Event \[sys\_search\_event\] table contains all of the strings used in searches. Scripts use this table to generate search analytics, search suggestions, and auto-complete suggestions. A system property sets the maximum age for records preserved in the table. The default is 180 days, but you can change this number to preserve search events for a shorter or longer duration. Longer durations increase the size of the table and its disk consumption.
## Procedure
1. Navigate to the Auto Flush \[sys\_auto\_flush\] table's list view.
1. Select **All**.
2. In the navigation field, enter `sys_auto_flush.list`.
3. Press Enter.
2. Search on `*search` and open the **sys\_search\_event** record.
3. On the Auto Flush form, edit the **Age in seconds** value.
The default is 15,552,000 seconds, which is 180 days.
| title | Set maximum age for searches used in suggestion generation |
| description | Set the Auto Flush parameter to limit the age of search strings used to create auto-complete suggestions and search suggestions. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/platform-administration/search-suggestions/set-maximum-number-of-search-strings.html |
| release | brazil |
| product | Search Suggestions |
| classification | search-suggestions |
| topic_type | task |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | Configuring Search SuggestionsSearch SuggestionsSearch administrationConfigure core featuresAdminister the ServiceNow AI Platform |