update build config

This commit is contained in:
medcl 2012-05-22 18:29:42 +08:00
parent 594b30a011
commit f86496a8d7
6 changed files with 19 additions and 398360 deletions

View File

@ -4,13 +4,25 @@ IK Analysis for ElasticSearch
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
-------------
In order to install the plugin, simply run:
<pre>
bin/plugin -install medcl/elasticsearch-analysis-ik/1.0.0
cd bin
plugin -install medcl/elasticsearch-analysis-ik/1.1.0
</pre>
also download the dict files,unzip these dict file to your elasticsearch's config folder,such as: your-es-root/config/ik

View File

@ -3,7 +3,7 @@
<properties>
<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>
</properties>

View File

@ -1,4 +1 @@
medcl
北森测评技术有限公司
北森
北森测评
medcl

File diff suppressed because it is too large Load Diff

View File

@ -6,7 +6,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.elasticsearch</groupId>
<artifactId>elasticsearch-analysis-ik</artifactId>
<version>1.0.0</version>
<version>1.1.0</version>
<packaging>jar</packaging>
<description>IK Analyzer for ElasticSearch</description>
<inceptionYear>2009</inceptionYear>
@ -31,7 +31,7 @@
</parent>
<properties>
<elasticsearch.version>0.18.5</elasticsearch.version>
<elasticsearch.version>0.19.4</elasticsearch.version>
</properties>
<repositories>

View File

@ -3,13 +3,13 @@
*/
package org.wltea.analyzer.lucene;
import java.io.Reader;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.TokenStream;
import org.elasticsearch.common.settings.Settings;
import org.wltea.analyzer.dic.Dictionary;
import java.io.Reader;
public final class IKAnalyzer extends Analyzer {
private boolean isMaxWordLength = false;
@ -25,8 +25,6 @@ public final class IKAnalyzer extends Analyzer {
}
public IKAnalyzer(Settings settings) {
Dictionary.getInstance().Init(settings);
}