Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
How to stop displaying past search results on Global Text Search in CMS - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • How to stop displaying past search results on Global Text Search in CMS
KB0696945

How to stop displaying past search results on Global Text Search in CMS


730 Views Last updated : Jan 3, 2025 public Copy Permalink
KB Summary by Now Assist

Issue



Description


All searches are going to be aggregated and displayed in all global search boxes as suggestions regardless of where they are issued from and who should be having access to seeing these results. 

When users type into the text search box it runs a search against the ts_search_stats table as follows:

The search_term column starts with the characters the user entered
The mean_hits column value is greater than zero

The results are then ordered by:

search_count
mean_hits
search_term
Listed by what the maximum # of choices is set to (glide.xmlhttp.max_choices system property).


Procedure


To stop past search results displaying on Global Text Search in CMS, please see the following options available. 

NOTE: Please remember to test this thoroughly on a sub-production instance before pushing it to your production instance to ensure you do not run into any further issues.


Option 1 
Remove records from the ts_search_stats table

  1. Navigate to ts.search_stats.list from the filter navigator
  2. In the "Search term" column, put in the search that users are doing and find the necessary records
  3. Delete the records that are required to be removed


Option 2
Disable the past results from appearing for CMS 

  1. Navigate to sys_ui_macro.list from the filter navigator
  2. Search for the UI Macro named "global_text_Search_Widget"
  3. Remove line 16 and save the record


Applicable Versions


All versions are applicable



The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.