update build config
This commit is contained in:
parent
594b30a011
commit
f86496a8d7
@ -4,13 +4,25 @@ IK Analysis for ElasticSearch
|
|||||||
The IK Analysis plugin integrates Lucene IK analyzer into elasticsearch, support customized dictionary.
|
The IK Analysis plugin integrates Lucene IK analyzer into elasticsearch, support customized dictionary.
|
||||||
|
|
||||||
|
|
||||||
|
--------------------------------------------------
|
||||||
|
| IK Analysis Plugin | ElasticSearch |
|
||||||
|
--------------------------------------------------
|
||||||
|
| master | 0.19.4 -> master |
|
||||||
|
--------------------------------------------------
|
||||||
|
| 1.1.0 | 0.19.4 -> master |
|
||||||
|
--------------------------------------------------
|
||||||
|
| 1.0.0 | 0.16.2 -> 0.19.0 |
|
||||||
|
--------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
Install
|
Install
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
In order to install the plugin, simply run:
|
In order to install the plugin, simply run:
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
bin/plugin -install medcl/elasticsearch-analysis-ik/1.0.0
|
cd bin
|
||||||
|
plugin -install medcl/elasticsearch-analysis-ik/1.1.0
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
also download the dict files,unzip these dict file to your elasticsearch's config folder,such as: your-es-root/config/ik
|
also download the dict files,unzip these dict file to your elasticsearch's config folder,such as: your-es-root/config/ik
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<properties>
|
<properties>
|
||||||
<comment>IK Analyzer 扩展配置</comment>
|
<comment>IK Analyzer 扩展配置</comment>
|
||||||
<!--用户可以在这里配置自己的扩展字典 -->
|
<!--用户可以在这里配置自己的扩展字典 -->
|
||||||
<entry key="ext_dict">custom/mydict.dic;custom/sougou.dict</entry>
|
<entry key="ext_dict">custom/mydict.dic</entry>
|
||||||
<!--用户可以在这里配置自己的扩展停止词字典-->
|
<!--用户可以在这里配置自己的扩展停止词字典-->
|
||||||
<entry key="ext_stopwords">custom/ext_stopword.dic</entry>
|
<entry key="ext_stopwords">custom/ext_stopword.dic</entry>
|
||||||
</properties>
|
</properties>
|
@ -1,4 +1 @@
|
|||||||
medcl
|
medcl
|
||||||
北森测评技术有限公司
|
|
||||||
北森
|
|
||||||
北森测评
|
|
||||||
|
398348
config/ik/custom/sougou.dict
398348
config/ik/custom/sougou.dict
File diff suppressed because it is too large
Load Diff
4
pom.xml
4
pom.xml
@ -6,7 +6,7 @@
|
|||||||
<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.0.0</version>
|
<version>1.1.0</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<description>IK Analyzer for ElasticSearch</description>
|
<description>IK Analyzer for ElasticSearch</description>
|
||||||
<inceptionYear>2009</inceptionYear>
|
<inceptionYear>2009</inceptionYear>
|
||||||
@ -31,7 +31,7 @@
|
|||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<elasticsearch.version>0.18.5</elasticsearch.version>
|
<elasticsearch.version>0.19.4</elasticsearch.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<repositories>
|
<repositories>
|
||||||
|
@ -3,13 +3,13 @@
|
|||||||
*/
|
*/
|
||||||
package org.wltea.analyzer.lucene;
|
package org.wltea.analyzer.lucene;
|
||||||
|
|
||||||
import java.io.Reader;
|
|
||||||
|
|
||||||
import org.apache.lucene.analysis.Analyzer;
|
import org.apache.lucene.analysis.Analyzer;
|
||||||
import org.apache.lucene.analysis.TokenStream;
|
import org.apache.lucene.analysis.TokenStream;
|
||||||
import org.elasticsearch.common.settings.Settings;
|
import org.elasticsearch.common.settings.Settings;
|
||||||
import org.wltea.analyzer.dic.Dictionary;
|
import org.wltea.analyzer.dic.Dictionary;
|
||||||
|
|
||||||
|
import java.io.Reader;
|
||||||
|
|
||||||
public final class IKAnalyzer extends Analyzer {
|
public final class IKAnalyzer extends Analyzer {
|
||||||
|
|
||||||
private boolean isMaxWordLength = false;
|
private boolean isMaxWordLength = false;
|
||||||
@ -25,8 +25,6 @@ public final class IKAnalyzer extends Analyzer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public IKAnalyzer(Settings settings) {
|
public IKAnalyzer(Settings settings) {
|
||||||
|
|
||||||
|
|
||||||
Dictionary.getInstance().Init(settings);
|
Dictionary.getInstance().Init(settings);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user