Go to the bin directory under the elasticsearch installation directory:
1. Install the head plug-in
Plugin-install mobz/elasticsearch-head
Verification: http: // localhost: 9200/_ plugin/head/
* Use the head to view the results after word segmentation:
Navigate to any request-> query:
Fill in three fields: A. http: // 127.0.0.1: 9200/index name/
B. _ analyze? Analyzer = ik
C. The keyword to be viewed (the keyword is caused ).
2. Install ik Word Segmentation
Plugin-install medcl/elasticsearch-analysis-IK/1.1.0
CD config
wget http://github.com/downloads/medcl/elasticsearch-analysis-ik/ik.zip --no-check-certificateunzip ik.zip
Rm ik.zip
Configure elasticsearch. yml and add:
Ik:
Alias: [ik_analyzer]
Type: org. elasticsearch. Index. analysis. ikanalyzerprovider
3. Install the Mongo river plug-in:
Plugin-install elasticsearch/elasticsearch-mapper-Attachments/1.6.0
Plugin-install Richard dwilly98/elasticsearch-river-MongoDB/1.4.0
4. Install the suggest plug-in
Plugin-URL https://github.com/downloads/spinscale/elasticsearch-suggest-plugin/elasticsearch-suggest-0.0.4-0.19.0.zip-install suggest
Note: The elasticsearch version and suggest plug-in version must be the same. Otherwise, an exception is reported.
Replace the file in the plugins/suggest directory with the new version. (Attachment)
Https://github.com/spinscale/elasticsearch-suggest-plugin
Reproduced to: http://maxrocray.iteye.com/blog/1703799