---
title: "Create a search classifier"
site: admin
version: 2027.1
versions: "all"
url: https://docs-new.servicely.ai/admin/2027.1/sofi/predictions-and-routing/create-a-search-classifier/
type: task
application: sofi_core
last_updated: 2026-12-03
commit: 6777698daac5
---


Create a search classifier when Sofi search should cover records that the shipped knowledge and catalog classifiers do not, such as a second knowledge table. This page is for Sofi administrators.

<Callout type="info">
  **Changed in 2027.1.** A form setting adds the classifier to a form. You no longer call it by name from a UI event.
</Callout>

## Before you begin

- You need the `sofi_administrator` role, and the `administrator` role to run a server script.
- Know the field names of the target table: the fields to match and the fields to show in results.

## Steps

<Steps>
  <Step>
    Go to **Predictions & routing → Intelligent predictions → Classifiers** and select **New**.

    <Image src="asset:screenshots/admin/sofi-predictions-and-routing-create-a-search-classifier/classifiers-menu.png">The Classifiers item in the Predictions & routing menu.</Image>

    <Image src="asset:screenshots/admin/sofi-predictions-and-routing-create-a-search-classifier/knowledge-classifier.png">The shipped Knowledge classifier, a search classifier with its table, type, search fields and result fields.</Image>
  </Step>
  <Step>
    Enter a unique **Name** and choose the **Table**. Set **Type** to **Knowledge** for articles, **Catalog** for catalog items, or **Template** for templates.
  </Step>
  <Step>
    In **Search fields**, enter the fields to match, separated by commas, for example `Title,Summary,Metadata,Content`.
  </Step>
  <Step>
    In **Result fields**, enter the fields to return with each match, such as the title and summary.
  </Step>
  <Step>
    Select **Active** and save.
  </Step>
  <Step>
    Create the search configuration for the table by running this server script with your classifier's name:

    ```javascript
    Sofi.updateGlobalSearchConfigurationForClassifier("My search classifier");
    ```
  </Step>
  <Step>
    Select **Train** on the classifier to build the table's search index.
  </Step>
  <Step>
    Add a form setting with your classifier as its **Classifier** and the ticket table as its **Table**. See [Show Sofi suggestions on a form](page:sofi/predictions-and-routing/show-sofi-suggestions-on-a-form).
  </Step>
</Steps>

## Result

Matching records appear in the **Sofi Smart Search** tab of the forms the form setting covers. Readers see only records they are allowed to read.

## Related

- [Intelligent search](page:sofi/predictions-and-routing/intelligent-search)
- [Classifier fields and default classifiers](page:sofi/predictions-and-routing/classifier-fields)
- [Run a server script](page:automation/scripts/run-a-server-script)
