diff --git a/README.md b/README.md index be3b694..b1b1732 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Versions IK version | ES version -----------|----------- master | 5.x -> master -5.5.0| 5.5.0 +5.5.1| 5.5.1 5.4.3| 5.4.3 5.3.3| 5.3.3 5.2.2| 5.2.2 @@ -31,28 +31,17 @@ Install 1.download or compile -download pre-build package from here: https://github.com/medcl/elasticsearch-analysis-ik/releases +* optional 1 - download pre-build package from here: https://github.com/medcl/elasticsearch-analysis-ik/releases + + unzip plugin to folder `your-es-root/plugins/` -or compiled from the source: - -checkout ik version respective to your elasticsearch version - -`git checkout tags/{version}` - -`mvn package` - -copy and unzip `target/releases/elasticsearch-analysis-ik-{version}.zip` to `your-es-root/plugins/ik` +* optional 2 - use elasticsearch-plugin to install ( version > v5.5.1 ): + `./bin/elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v5.5.1/elasticsearch-analysis-ik-5.5.1.zip` 2.restart elasticsearch -Tips: - -ik_max_word: 会将文本做最细粒度的拆分,比如会将“中华人民共和国国歌”拆分为“中华人民共和国,中华人民,中华,华人,人民共和国,人民,人,民,共和国,共和,和,国国,国歌”,会穷尽各种可能的组合; - -ik_smart: 会做最粗粒度的拆分,比如会将“中华人民共和国国歌”拆分为“中华人民共和国,国歌”。 - #### Quick Example @@ -249,6 +238,13 @@ mvn package 如:http://localhost:9200/your_index/_analyze?text=中华人民共和国MN&tokenizer=my_ik +4. ik_max_word 和 ik_smart 什么区别? + + +ik_max_word: 会将文本做最细粒度的拆分,比如会将“中华人民共和国国歌”拆分为“中华人民共和国,中华人民,中华,华人,人民共和国,人民,人,民,共和国,共和,和,国国,国歌”,会穷尽各种可能的组合; + +ik_smart: 会做最粗粒度的拆分,比如会将“中华人民共和国国歌”拆分为“中华人民共和国,国歌”。 + Changes ------ *5.0.0* diff --git a/pom.xml b/pom.xml index aa71f1f..0d5308a 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ 2011 - 5.5.0 + 5.5.1 1.8 ${project.basedir}/src/main/assemblies/plugin.xml analysis-ik