75 Commits

Author SHA1 Message Date
pengcong90
9873489ba7
Update AnalyzeContext.java
使用ik_smart切分 金力泰合同审批 切分的结果是(金  力  泰  合同  审批)但是使用ik_max_word切分结果是(金  力  泰合  合同  审批 批),这样就存在搜索(金力泰  金力泰合同审批) 搜索不到的情况,查看源码发现泰未在字典中,泰合  合同在字典中,导致smart切分消歧的时候按照逆向概率高的规则忽略了泰合,输出结果泰就单独切分了,可以在输出结果时判断下 字典中无单字,但是词元冲突了,切分出相交词元的前一个词元中的单字,这样就能解决这个问题
2018-11-21 11:00:29 +08:00
杨晓东
949531572b 修改适配elasticsearch 6.5.0 (#615)
Signed-off-by: 杨晓东 <03131302@163.com>
2018-11-20 13:36:39 +00:00
byronhe
1d750a9bdd Update AnalyzeContext.java (#617) 2018-11-20 13:15:37 +00:00
Rueian
5190dba198 Grant java.net.SocketPermission (#565) 2018-06-28 16:11:46 +08:00
medcl
0222529290 Remove intermediate elasticsearch directory within plugin zips 2018-06-19 11:25:29 +08:00
Figroc Chen
7028b9ea05 BOM handling of dict file (#517)
Signed-off-by: Peng Chen <figroc@gmail.com>
2018-04-02 13:29:22 +08:00
Figroc Chen
0e8ddbd749 ext dic&stopwords can be dir (#437)
allow dir for ext_dict and ext_stopwords in IKAnalyzer.cfg.xml
By: Peng Chen<figroc@gmail.com>
2018-02-24 16:40:21 +08:00
medcl
7a1445fdda update plugin-descriptor.properties, Close #514 2018-02-10 14:07:20 +08:00
medcl
50230bfa64 fix install by plugin command 2017-08-03 16:59:35 +08:00
medcl
b6ec9c0a00 update to support es5.0.0-beta1, Closes #282 2016-09-28 12:14:24 +02:00
medcl
168a798da8 support es 5.0.0-alpha5 2016-08-18 11:25:45 +08:00
medcl
7e86d7390a remove unused classes 2016-07-25 20:54:57 +08:00
medcl
341b586373 add config to enable/disable lowercase and remote_dict, Closes #241 2016-07-25 10:55:25 +08:00
tangyu
82432f1059 fix: Header ETag not exists will throw error: java.lang.NullPointerException #223 (#224) 2016-06-29 10:30:31 +08:00
medcl
f1d59921fe Merge branch 'master' of github.com:medcl/elasticsearch-analysis-ik 2016-06-13 10:34:20 +08:00
medcl
c94ef3884a Fix maven empty assembly id, Closes #208 2016-06-13 10:34:01 +08:00
Robert LU
26fe905cc6 Also load config from /etc/elasticsearch/analysis-ik (#197)
Support install by `bin/plugin`, dealing with config files reallocation
2016-05-25 17:07:25 +08:00
medcl
ca2bfe5732 merge code 2016-04-10 22:17:59 +08:00
medcl
b344f2e707 fix default analysis setting 2016-03-28 22:22:44 +08:00
Medcl
e673eca316 Merge pull request #144 from DevFactory/release/redundant-nullcheck-fix-1
Fixing redundant null check of value known to be non-null.
2016-03-27 21:12:43 +08:00
Medcl
c8f4d59f13 Merge pull request #145 from DevFactory/release/value-of-and-double-check-fix-1
Fixing the use of inefficient Number Constructor and Double check
2016-03-27 21:12:10 +08:00
Medcl
8c50edf0e0 Merge pull request #150 from DevFactory/release/casting-math-operands-fix-1
Casting math operands before assignment
2016-02-29 10:23:09 +08:00
ayman abdelghany
ba1823fb51 "public static" fields should be constant 2016-02-11 20:08:19 +02:00
ayman abdelghany
9768188eb2 Casting math operands before assignment 2016-02-11 20:04:45 +02:00
Ayman Abdel Ghany
5ec0bd5bd6 Use logger to log exceptions instead of printStackTrace(...) 2016-01-29 14:47:03 +02:00
Ayman Abdel Ghany
81ea266414 - replacing the inefficient Number constructor with static valueOf instead
- remove double-checked locking
2016-01-26 23:24:24 +02:00
Ayman Abdel Ghany
3d8fa5bee0 Fixing redundant nullcheck of value known to be non-null. 2016-01-26 22:23:30 +02:00
Medcl
3f0214a8e3 Merge pull request #140 from DevFactory/release/merge-if-with-enclosing-one-fix-1
Merging collapsible if statements increases the code's readability.
2016-01-26 09:43:41 +08:00
Ayman Abdel Ghany
1eed772f34 Replace the usage of System.out or System.err by a logger 2016-01-21 23:03:45 +02:00
Ayman Abdel Ghany
5fb03d2751 Merging collapsible if statements increases the code's readability. 2016-01-21 19:13:41 +02:00
medcl
71b5211781 pretty logging 2016-01-13 10:53:05 +08:00
medcl
f9977456ee move config files stay with plugin 2016-01-10 10:33:07 +08:00
medcl
2ea4c922de add deprecated annotation to unused class 2015-12-25 14:32:29 +08:00
medcl
33fb6ad67e fix null exception and update to support es2.1 2015-12-01 21:56:18 +08:00
wyhw
961b3a3f55 Elasticsearch upgrade 2.1 2015-11-26 16:20:34 +08:00
medcl
c77cfcb6ef update scope to GLOBAL 2015-11-26 16:02:31 +08:00
medcl
90ff4e4efb delete test config file 2015-10-31 21:12:35 +08:00
medcl
3d47fa6021 update to support es 2.0 2015-10-31 20:59:13 +08:00
shikui
7cdb1773ec 处理 HTTP 304,不写日志 2015-08-07 22:57:03 +08:00
songliu
86813f5be9 去掉304的处理
304不应该和200做相同处理,否则就失去热词更新的意义了。
2015-08-07 15:10:27 +08:00
shikui
2cbd91c6c0 1、将http 304作为正常状态处理;2、应为ETag,而不是ETags
1、将http 304作为正常状态处理,避免大量304错误写到日志文件里;2、应为ETag,而不是ETags
2015-08-03 17:46:23 +08:00
rockybean
bb27162a24 fix reload dict error , optimize code and add some useful log 2015-01-22 16:35:50 +08:00
rockybean
b97a6d89d8 optimize Dictionary reload process 2015-01-21 15:28:05 +08:00
arron
6c29956a8f Update Monitor.java
-- 配合 Dictionary里的周期任务调度的修改 去除了这里的while(true)  Exception做了统一  其余均未作修改
2014-12-04 11:18:29 +08:00
arron
8a49a5ed88 Update Dictionary.java
-- 修改的 建立监控线程部分代码 改用ScheduledExecutorService, 之前的while(true) sleep不能算是一种优雅的执行周期任务的方式,相应的Monitor类将while部分做了剔除
2014-12-04 11:16:23 +08:00
medcl
fbaff41805 package missing lib,update to support 1.4.0 2014-11-09 11:09:15 +08:00
elasticsearch-ik
ddef2a1051 Create Sleep.java
设置休眠
2014-09-24 16:26:42 +08:00
elasticsearch-ik
f0dc55aad6 Update Dictionary.java
给远程加载建立监控
2014-09-24 16:21:31 +08:00
elasticsearch-ik
11a8947603 Create Monitor.java
监控线程,监控远程词典的更新
2014-09-24 16:14:08 +08:00
elasticsearch-ik
092a9ad769 Update Configuration.java
在配置中增加远程词典和远程停用词,以及它们的配置读取
2014-09-24 15:46:30 +08:00