All Products
Search
Document Center

Lindorm:Custom dictionaries

Last Updated:Mar 28, 2026

LindormSearch lets you extend the IK analyzer with your own vocabulary by uploading custom dictionary files to a configuration set. Use this to improve tokenization for domain-specific terms — product names, brand keywords, or industry jargon — that the default dictionary doesn't recognize.

Two dictionary files are available:

FilePurpose
extra_main.dicAdds words to the main dictionary so the IK analyzer recognizes them as discrete tokens
extra_stopword.dicAdds words to the stopword list so they are filtered out during analysis

Each file uses the same format: one word per line.

Prerequisites

Before you begin, make sure you have:

Limitations

Only the IK analyzer supports custom dictionaries. Specify the analyzer when creating a search index. See CREATE SEARCH INDEX.

Configure a custom dictionary

Custom dictionaries are bundled inside a configuration set. The general workflow is: download the configuration set, edit the dictionary files locally, then upload and reload.

  1. Go to the lindorm-search-cli/bin directory:

    cd lindorm-search-cli/bin
  2. List available configuration sets:

    ./search-cli zk ls /configs
  3. Download the configuration set you want to modify. This creates a conf directory in the current path:

    ./search-cli zk downconfig -d . -n <configuration set name>

    For example:

    ./search-cli zk downconfig -d . -n default.myTable.myIdx
  4. Go to the conf directory:

    cd conf
  5. If extra_main.dic does not exist, create it:

    touch extra_main.dic
  6. Edit the main dictionary file. Each line must contain exactly one word:

    vi extra_main.dic

    Example content:

    Guide
    Product
    Engine
  7. Edit the stopword list file. The default filename is extra_stopword.dic:

    vi extra_stopword.dic
  8. Return to the bin directory:

    cd ..
  9. Upload the modified configuration set:

    ./search-cli zk upconfig -d conf -n default.myTable.myIdx
  10. Reload the collection to apply the changes:

    ./search-cli reload_collection -c default.myTable.myIdx