elasticsearch installation ik word

Reference https://blog.csdn.net/wwd0501/article/details/78258274
1. Download
ik word address ( https://github.com/medcl/elasticsearch-analysis-ik/releases/tag/v5.5.1 )

2. Query
curl localhost: 9200 / _cat / plugins query word installed
http: // localhost: 9200 / _analyze analyzer = ik_smart & text = figs Alipay?

3. Use
3.1 to create an index
query existing index curl localhost: 9200 / _cat / indices v?
Create an index curl -XPUT localhost: 9200 / knowledge
to create a mapping curl -XPOST localhost: 9022 / konwledge / student / _mapping -d "{" student ": {" properties ": { " name ": {" type ":" text "," analyzer ":" ik_max_word "," search_analyzer ":" ik_smart "}," age ": {" type ":" long " }}}} "

Guess you like

Origin www.cnblogs.com/bob-coder/p/11569922.html