---
title: "Create a search classifier"
site: admin
version: 1.11
versions: "all"
url: https://docs-new.servicely.ai/admin/1.11/sofi/create-a-search-classifier/
type: task
application: sofi_core
last_updated: 2026-10-18
commit: c0e55f26ec7b
---


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.

## Before you begin

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

## Steps

<Steps>
  <Step>
    Go to **Intelligent automation → Intelligent predictions → Classifiers** and select **New**.

    <Image src="asset:screenshots/admin/sofi-create-a-search-classifier/cleanshot-2025-06-24-at-122222-2x.png">The shipped Knowledge classifier, a search classifier with its table, type and search fields.</Image>
  </Step>
  <Step>
    Enter a unique **Name**, choose the **Table** and set **Type** to Knowledge for articles, the catalog type 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>
    In the UI event that starts Sofi on the ticket form, call the classifier by name, for example `client.knowledgeSearch(searchText, "My search classifier");`. See [Show Sofi suggestions on a form](page:sofi/show-sofi-suggestions-on-a-form).
  </Step>
</Steps>

## Result

Once the next search synchronisation has indexed the table, matching records appear in the **Sofi Smart Search** tab of the forms that call the classifier. Readers see only records they are allowed to read.

## Related

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