diff --git a/README.md b/README.md index 325c70e..b185318 100644 --- a/README.md +++ b/README.md @@ -13,73 +13,38 @@ In order to install the plugin, choose a version in [releases](https://github.co ```sh bin/elasticsearch-plugin install link/to/binary/version ``` - -Or to build from source, you need to build it with Maven: - -```bash -mvn clean package -bin/elasticsearch-plugin install file:target/releases/elasticsearch-analysis-vietnamese-5.2.1.zip -``` - -*In order to build the plugin you need to build the [vn-nlp-libararies](https://github.com/duydo/vn-nlp-libraries) first. Thanks to thầy [Lê Hồng Phương](http://mim.hus.vnu.edu.vn/phuonglh/) for his VnTokenizer library.* - - - -## Example -```sh -curl "http://localhost:9200/_analyze?pretty" -d' -{ - "analyzer": "vi_analyzer", - "text": "Công nghệ thông tin Việt Nam" -}' -``` - -Result -```json -{ - "tokens" : [ - { - "token" : "công nghệ thông tin", - "start_offset" : 0, - "end_offset" : 19, - "type" : "word", - "position" : 0 - }, - { - "token" : "việt nam", - "start_offset" : 20, - "end_offset" : 28, - "type" : "name2", - "position" : 1 - } - ] -} -``` - -|Vietnamese Analysis Plugin|Elasticsearch| -|---|---| -| master|5.2.1| -| 5.2.1|5.2.1| -| 2.4.1|2.4.1| -| 2.4.0|2.4.0| -| 2.3.5|2.3.5| -| 2.3.4|2.3.4| -| 2.3.3|2.3.3| -| 2.3.2|2.3.2| -| 2.3.1|2.3.1| -| 2.3.0|2.3.0| -| 0.2.2|2.2.0| -| 0.2.1.1|2.1.1| -| 0.2.1|2.1.0| -| 0.2|2.0.0| -| 0.1.7|1.7+| -| 0.1.6|1.6+| -| 0.1.5|1.5+| -| 0.1.1|1.4+| -| 0.1|1.3| - -License -------- +## Build from Source +Check this post: [How to build Elasticsearch Vietnamese Analysis Plugin](http://duydo.me/how-to-build-elasticsearch-vietnamese-analysis-plugin/) + +## Compatible Versions +| Vietnamese Analysis Plugin | Elasticsearch | +| -------------------------- | ------------- | +| master | 5.3.1 | +| 5.3.1 | 5.3.1 | +| 5.2.1 | 5.2.1 | +| 2.4.1 | 2.4.1 | +| 2.4.0 | 2.4.0 | +| 2.3.5 | 2.3.5 | +| 2.3.4 | 2.3.4 | +| 2.3.3 | 2.3.3 | +| 2.3.2 | 2.3.2 | +| 2.3.1 | 2.3.1 | +| 2.3.0 | 2.3.0 | +| 0.2.2 | 2.2.0 | +| 0.2.1.1 | 2.1.1 | +| 0.2.1 | 2.1.0 | +| 0.2 | 2.0.0 | +| 0.1.7 | 1.7+ | +| 0.1.6 | 1.6+ | +| 0.1.5 | 1.5+ | +| 0.1.1 | 1.4+ | +| 0.1 | 1.3 | + +## Thanks to +- [Lê Hồng Phương](http://mim.hus.vnu.edu.vn/phuonglh/) for his VnTokenizer library +- [JetBrains](https://www.jetbrains.com) has provided a free license for their great tool: [IntelliJ IDEA](https://www.jetbrains.com/idea/) + +## License This software is licensed under the Apache 2 license, quoted below. diff --git a/pom.xml b/pom.xml index c7fa25c..4baa886 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 org.elasticsearch elasticsearch-analysis-vietnamese - 5.2.1 + 5.3.1 jar elasticsearch-analysis-vietnamese https://github.com/duydo/elasticsearch-analysis-vietnamese/ @@ -31,8 +31,8 @@ UTF-8 1.8 - 5.2.1 - 6.4.1 + 5.3.1 + 6.4.2 4.1.0 2.7