Smart Chinese analysis plugin

The Smart Chinese Analysis plugin integrates Lucene’s Smart Chinese analysis module into elasticsearch.

It provides an analyzer for Chinese or mixed Chinese-English text. This analyzer uses probabilistic knowledge to find the optimal word segmentation for Simplified Chinese text. The text is first broken into sentences, then each sentence is segmented into words.

This plugin can be installed using the plugin manager:

sudo bin/elasticsearch-plugin install analysis-smartcn
		

The plugin must be installed on every node in the cluster, and each node must be restarted after installation.

You can also download this plugin for offline install. Download the build that matches the Elasticsearch version you are running.

Replace <SPECIFIC.VERSION.NUMBER> with the Elasticsearch version you are running. For example, you can replace <SPECIFIC.VERSION.NUMBER> with 9.0.0.

  • To download the build for the plugin, use this link:

    https://artifacts.elastic.co/downloads/elasticsearch-plugins/analysis-smartcn/analysis-smartcn-<SPECIFIC.VERSION.NUMBER>.zip
    		
  • To download the corresponding SHA hash to verify the .zip file, use this link:

    https://artifacts.elastic.co/downloads/elasticsearch-plugins/analysis-smartcn/analysis-smartcn-<SPECIFIC.VERSION.NUMBER>.zip.sha512
    		
  • To download the corresponding PGP signature (.asc) to verify the .zip file, use this link:

    https://artifacts.elastic.co/downloads/elasticsearch-plugins/analysis-smartcn/analysis-smartcn-<SPECIFIC.VERSION.NUMBER>.zip.asc
    		

The plugin manager installs plugins on a self-managed cluster. To install this plugin on Elastic Cloud Hosted, Elastic Cloud Enterprise, or Elastic Cloud on Kubernetes, refer to the plugin installation instructions for your deployment type.

The plugin can be removed with the following command:

sudo bin/elasticsearch-plugin remove analysis-smartcn
		

The node must be stopped before removing the plugin.

The plugin provides the smartcn analyzer, smartcn_tokenizer tokenizer, and smartcn_stop token filter which are not configurable.

Note

The smartcn_word token filter and smartcn_sentence have been deprecated.