Compare commits

...

11 Commits
master ... 2.x

Author SHA1 Message Date
hl123123
e386a62bbd Update README.md (#677) 2019-04-30 20:26:23 +08:00
medcl
c41e5a5e6f Merge branch '2.x' of github.com:medcl/elasticsearch-analysis-ik into 2.x 2017-11-12 11:53:50 +08:00
medcl
eb13d96419 update es to 2.4.6 2017-11-12 11:52:55 +08:00
Cary
cf529e567e 对Http Client降级处理,因为dynamic-synonym插件对4.5.2产生报错问题。 (#390) 2017-06-26 10:21:51 +08:00
medcl
f27d378970 update es to 2.4.5 2017-05-16 10:05:46 +08:00
medcl
793030bfac fix plugin version 2017-02-13 11:29:07 +08:00
medcl
f472a583d0 update es to 2.4.4, Closes#334 2017-02-13 11:00:11 +08:00
medcl
c02076eb6d update es to 2.4.3 2016-12-14 10:34:58 +08:00
medcl
4ece2abdd7 update es to 2.4.2 2016-12-14 10:28:39 +08:00
medcl
d84960e064 update es to 2.4.1 2016-10-13 16:24:17 +08:00
medcl
eb70d426dd update es to 2.4.0 2016-09-02 10:38:15 +08:00
2 changed files with 10 additions and 9 deletions

View File

@ -10,7 +10,8 @@ Versions
IK version | ES version
-----------|-----------
master | 2.3.5 -> master
master | 2.4.x -> master
1.10.6 | 2.4.6
1.9.5 | 2.3.5
1.9.4 | 2.3.4
1.9.3 | 2.3.3
@ -54,7 +55,7 @@ curl -XPUT http://localhost:9200/index
2.create a mapping
```bash
curl -XPOST http://localhost:9200/index/fulltext/_mapping -d'
curl -XPOST http://localhost:9200/index/fulltext/_mapping -H 'Content-Type:application/json' -d'
{
"fulltext": {
"_all": {
@ -81,25 +82,25 @@ curl -XPOST http://localhost:9200/index/fulltext/_mapping -d'
3.index some docs
```bash
curl -XPOST http://localhost:9200/index/fulltext/1 -d'
curl -XPOST http://localhost:9200/index/fulltext/1 -H 'Content-Type:application/json' -d'
{"content":"美国留给伊拉克的是个烂摊子吗"}
'
```
```bash
curl -XPOST http://localhost:9200/index/fulltext/2 -d'
curl -XPOST http://localhost:9200/index/fulltext/2 -H 'Content-Type:application/json' -d'
{"content":"公安部:各地校车将享最高路权"}
'
```
```bash
curl -XPOST http://localhost:9200/index/fulltext/3 -d'
curl -XPOST http://localhost:9200/index/fulltext/3 -H 'Content-Type:application/json' -d'
{"content":"中韩渔警冲突调查韩警平均每天扣1艘中国渔船"}
'
```
```bash
curl -XPOST http://localhost:9200/index/fulltext/4 -d'
curl -XPOST http://localhost:9200/index/fulltext/4 -H 'Content-Type:application/json' -d'
{"content":"中国驻洛杉矶领事馆遭亚裔男子枪击 嫌犯已自首"}
'
```

View File

@ -6,13 +6,13 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.elasticsearch</groupId>
<artifactId>elasticsearch-analysis-ik</artifactId>
<version>1.9.5</version>
<version>1.10.6</version>
<packaging>jar</packaging>
<description>IK Analyzer for Elasticsearch</description>
<inceptionYear>2011</inceptionYear>
<properties>
<elasticsearch.version>2.3.5</elasticsearch.version>
<elasticsearch.version>2.4.6</elasticsearch.version>
<maven.compiler.target>1.7</maven.compiler.target>
<elasticsearch.assembly.descriptor>${project.basedir}/src/main/assemblies/plugin.xml</elasticsearch.assembly.descriptor>
<elasticsearch.plugin.name>analysis-ik</elasticsearch.plugin.name>
@ -75,7 +75,7 @@
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.2</version>
<version>4.4.1</version>
</dependency>
<dependency>