Skip to content

Commit

Permalink
Merge branch 'release/v5.3.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
duydo committed Apr 21, 2017
2 parents 5ab50da + f9d3cf7 commit 6a9d363
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 70 deletions.
99 changes: 32 additions & 67 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.elasticsearch</groupId>
<artifactId>elasticsearch-analysis-vietnamese</artifactId>
<version>5.2.1</version>
<version>5.3.1</version>
<packaging>jar</packaging>
<name>elasticsearch-analysis-vietnamese</name>
<url>https://github.com/duydo/elasticsearch-analysis-vietnamese/</url>
Expand Down Expand Up @@ -31,8 +31,8 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.build.java.version>1.8</project.build.java.version>
<elasticsearch.version>5.2.1</elasticsearch.version>
<lucene.version>6.4.1</lucene.version>
<elasticsearch.version>5.3.1</elasticsearch.version>
<lucene.version>6.4.2</lucene.version>
<jna.version>4.1.0</jna.version>
<log4j.version>2.7</log4j.version>
</properties>
Expand Down

0 comments on commit 6a9d363

Please sign in to comment.