ICU plugin - Elasticsearch 权威指南中文版


ICU plugin

发布于 2019-07-04 字数 1866 浏览 895 评论 0

=== Installing the ICU Plug-in

The[ICU analysis
plug-in] for Elasticsearch uses the International Components for Unicode
(ICU) libraries (see[]) to
provide a rich set of tools for dealing with Unicode.(((“International Components for Unicode libraries”, see=”ICU plugin, installing”)))(((“words”, “identifying”, “installing ICU plugin”)))(((“ICU plugin, installing”))) These include the
icu_tokenizer, which is particularly useful for Asian languages,(((“Asian languages”, “icu_tokenizer for”))) and a number
of token filters that are essential for correct matching and sorting in all
languages other than English.

The ICU plug-in is an essential tool for dealing with languages other than
English, and it is highly recommended that you install and use it.
Unfortunately, because it is based on the external ICU libraries, different
versions of the ICU plug-in may not be compatible with previous versions. When
upgrading, you may need to reindex your data.


To install the plug-in, first shut down your Elasticsearch node and then run the
following command from the Elasticsearch home directory:


./bin/plugin -install elasticsearch/elasticsearch-analysis-icu/$VERSION

The current `$VERSION` can be found at

Once installed, restart Elasticsearch, and you should see a line similar to the
following in the startup logs:

[INFO][plugins] [Mysterio] loaded [marvel, analysis-icu], sites [marvel]

If you are running a cluster with multiple nodes, you will need to install the
plug-in on every node in the cluster.

上一篇:Standard tokenizer

下一篇:ICU tokenizer


需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。