forked from elasticsearch-cn/elasticsearch-definitive-guide
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
在lxy4java版本上重新提交 (elasticsearch-cn#423)
- Loading branch information
Showing
1 changed file
with
13 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,33 @@ | ||
[[icu-plugin]] | ||
=== Installing the ICU Plug-in | ||
=== 安装 ICU 插件 | ||
|
||
The https://github.com/elasticsearch/elasticsearch-analysis-icu[ICU analysis | ||
plug-in] for Elasticsearch uses the _International Components for Unicode_ | ||
(ICU) libraries (see http://site.icu-project.org[site.project.org]) 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. | ||
|
||
Elasticsearch的 https://github.com/elasticsearch/elasticsearch-analysis-icu[ICU 分析器插件] 使用 _国际化组件 Unicode_ (ICU) 函数库(详情查看 http://site.icu-project.org[site.project.org] )提供丰富的处理 Unicode 工具。 | ||
这些包含对处理亚洲语言特别有用的 `icu_分词器` ,还有大量对除英语外其他语言进行正确匹配和排序所必须的分词过滤器。 | ||
|
||
[NOTE] | ||
================================================== | ||
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. | ||
ICU 插件是处理英语之外语言的必需工具,非常推荐你安装并使用它,不幸的是,因为是基于额外的 ICU 函数库, | ||
不同版本的ICU插件可能并不兼容之前的版本,当更新插件的时候,你需要重新索引你的数据。 | ||
================================================== | ||
|
||
To install the plug-in, first shut down your Elasticsearch node and then run the | ||
following command from the Elasticsearch home directory: | ||
|
||
安装这个插件,第一步先关掉你的Elasticsearch节点,然后在Elasticsearch的主目录运行以下命令: | ||
|
||
[source,sh] | ||
-------------------------------------------------- | ||
./bin/plugin -install elasticsearch/elasticsearch-analysis-icu/$VERSION <1> | ||
-------------------------------------------------- | ||
|
||
<1> The current `$VERSION` can be found at | ||
<1> 当前 `$VERSION` (版本)可以在以下地址找到 | ||
_https://github.com/elasticsearch/elasticsearch-analysis-icu_. | ||
|
||
Once installed, restart Elasticsearch, and you should see a line similar to the | ||
following in the startup logs: | ||
|
||
一旦安装后,重启Elasticsearch,你将会看到类似如下的一条启动日志: | ||
|
||
|
||
[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. | ||
如果你有很多节点并以集群方式运行的,你需要在集群的每个节点都安装这个插件。 |