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


---

# Score search terms by inverse document frequency (IDF)

# Score search terms by inverse document frequency (IDF) {#ariaid-title1}

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

Enable term frequency--inverse document frequency (TF-IDF) to increase the search result scores of search terms that appear more frequently in a document, but less frequently in the whole collection of searchable documents.

## Before you begin

To enable TF-IDF scoring, a text index must be present for the table. Make sure that text indexing is enabled for the table before changing the query mode. See [Configure a table for indexing and searching](https://servicenow-prod.fluidtopics.net/ikx52T2SvdSyrAWcJbB0lA#configure-single-table-for-indexing "Enable Zing text indexing for a table to allow users to search its records for string values. Configure the table's text indexing attributes, stop words, and synonym dictionaries to control search behavior.").

Role required: ts_admin or admin

## About this task

Administrators can enable TF-IDF scoring on a table to improve search results. The Knowledge table \[kb_knowledge\] has TF-IDF scoring enabled by default.  
Note:  
This task requires that you regenerate an index and therefore should be done with system performance in mind. Regenerating an index may take a while to complete depending on table size and other factors. You may notice performance degradation or incomplete search results while the system regenerates the index.

## Procedure

1. Navigate to the [system dictionary](https://servicenow-prod.fluidtopics.net/4a2v7eTS8qFMt~3PiE0b7w "View a list of all tables in columns in your instance from the system dictionary.") and open the entry for the desired table.
2. In the Attributes related list, select New.
3. In the Attributes field, select Text search Enable IDF.
4. Select Submit.  
   The Enable IDF Score check box in the table's text index record can now be configured.
5. Navigate to AllSystem DefinitionText Indexes.
6. Open the text index created for the table.
7. Select Enable IDF Score.
8. Under Related Links, select Regenerate Document Frequency.  
   Regenerating document frequency is a one-time task. Regenerate document frequency when TF-IDF scoring is first enabled for a table.
9. Configure the desired notification and select OK.
**Related tasks**   

* [Set the relative weight of a field](https://servicenow-prod.fluidtopics.net/ThhUKK061xSSEWpzXC_ufQ "To improve search results, the Zing search engine assigns to each potential match a numeric score that represents its relevancy to the query.")

*[\>]: and then


