Compare commits
11 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
e386a62bbd | ||
|
c41e5a5e6f | ||
|
eb13d96419 | ||
|
cf529e567e | ||
|
f27d378970 | ||
|
793030bfac | ||
|
f472a583d0 | ||
|
c02076eb6d | ||
|
4ece2abdd7 | ||
|
d84960e064 | ||
|
eb70d426dd |
13
README.md
13
README.md
@ -10,7 +10,8 @@ Versions
|
|||||||
|
|
||||||
IK version | ES version
|
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.5 | 2.3.5
|
||||||
1.9.4 | 2.3.4
|
1.9.4 | 2.3.4
|
||||||
1.9.3 | 2.3.3
|
1.9.3 | 2.3.3
|
||||||
@ -54,7 +55,7 @@ curl -XPUT http://localhost:9200/index
|
|||||||
2.create a mapping
|
2.create a mapping
|
||||||
|
|
||||||
```bash
|
```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": {
|
"fulltext": {
|
||||||
"_all": {
|
"_all": {
|
||||||
@ -81,25 +82,25 @@ curl -XPOST http://localhost:9200/index/fulltext/_mapping -d'
|
|||||||
3.index some docs
|
3.index some docs
|
||||||
|
|
||||||
```bash
|
```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":"美国留给伊拉克的是个烂摊子吗"}
|
{"content":"美国留给伊拉克的是个烂摊子吗"}
|
||||||
'
|
'
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```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":"公安部:各地校车将享最高路权"}
|
{"content":"公安部:各地校车将享最高路权"}
|
||||||
'
|
'
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```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艘中国渔船"}
|
{"content":"中韩渔警冲突调查:韩警平均每天扣1艘中国渔船"}
|
||||||
'
|
'
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```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":"中国驻洛杉矶领事馆遭亚裔男子枪击 嫌犯已自首"}
|
{"content":"中国驻洛杉矶领事馆遭亚裔男子枪击 嫌犯已自首"}
|
||||||
'
|
'
|
||||||
```
|
```
|
||||||
|
6
pom.xml
6
pom.xml
@ -6,13 +6,13 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>org.elasticsearch</groupId>
|
<groupId>org.elasticsearch</groupId>
|
||||||
<artifactId>elasticsearch-analysis-ik</artifactId>
|
<artifactId>elasticsearch-analysis-ik</artifactId>
|
||||||
<version>1.9.5</version>
|
<version>1.10.6</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<description>IK Analyzer for Elasticsearch</description>
|
<description>IK Analyzer for Elasticsearch</description>
|
||||||
<inceptionYear>2011</inceptionYear>
|
<inceptionYear>2011</inceptionYear>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<elasticsearch.version>2.3.5</elasticsearch.version>
|
<elasticsearch.version>2.4.6</elasticsearch.version>
|
||||||
<maven.compiler.target>1.7</maven.compiler.target>
|
<maven.compiler.target>1.7</maven.compiler.target>
|
||||||
<elasticsearch.assembly.descriptor>${project.basedir}/src/main/assemblies/plugin.xml</elasticsearch.assembly.descriptor>
|
<elasticsearch.assembly.descriptor>${project.basedir}/src/main/assemblies/plugin.xml</elasticsearch.assembly.descriptor>
|
||||||
<elasticsearch.plugin.name>analysis-ik</elasticsearch.plugin.name>
|
<elasticsearch.plugin.name>analysis-ik</elasticsearch.plugin.name>
|
||||||
@ -75,7 +75,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.httpcomponents</groupId>
|
<groupId>org.apache.httpcomponents</groupId>
|
||||||
<artifactId>httpclient</artifactId>
|
<artifactId>httpclient</artifactId>
|
||||||
<version>4.5.2</version>
|
<version>4.4.1</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user