仅简单给出安装说明,权当抛砖引玉。 代码: cd /usr/local/ wget -c https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.4.5.tar.gz tar -xf elasticsearch-1.4.5.tar.gz rm -rf elasticsearch-1.4.5.tar.gz curl -l http://github.com/elasticsearch/elasticsearch-servicewrapper/tarball/master | tar -xz mv *servicewrapper*/service /usr/local/elasticsearch-1.4.5/bin/ rm -rf *servicewrapper* /usr/local/elasticsearch-1.4.5/bin/service/elasticsearch install cd /usr/local/elasticsearch-1.4.5/ bin/plugin -install elasticsearch/elasticsearch-analysis-smartcn/2.4.3 /usr/local/elasticsearch-1.4.5/bin/service/elasticsearch restart XF相关配置见:XenForo Enhanced Search 中文搜索环境详解
#mv *servicewrapper*/service /usr/local/lasticsearch-1.3.4/bin/ mv *servicewrapper*/service /usr/local/elasticsearch-1.3.4/bin/ 那个我测试了一下,对中文和日文汉字的支持都很好,但是对日文的平假名和片假名支持偏差,所以同时安装两个分词词库。 bin/plugin -install elasticsearch/elasticsearch-analysis-smartcn/2.4.2 bin/plugin -install elasticsearch/elasticsearch-analysis-kuromoji/2.4.1 https://github.com/elasticsearch/elasticsearch-analysis-kuromoji