Comments (8)
http://lucene.apache.org/core/4_6_0/changes/Changes.html#v4.6.0.changes_in_backw
ards_compatibility_policy
LUCENE-5235: Sub classes of Tokenizer have to call super.reset() when
implementing reset(). Otherwise the consumer will get an IllegalStateException
because the Reader is not correctly assigned. It is important to never change
the "input" field on Tokenizer without using setReader(). The "input" field
must not be used outside reset(), incrementToken(), or end() - especially not
in the constructor.
MMSegTokenizer.java
public void reset() throws IOException {
//lucene 4.0
//org.apache.lucene.analysis.Tokenizer.setReader(Reader)
//setReader 自动被调用, input 自动被设置。
super.reset(); //加这一句
mmSeg.reset(input);
}
重新打包
mvn package
Original comment by [email protected]
on 12 Dec 2013 at 1:06
from mmseg4j.
Thanks a lot.
Original comment by [email protected]
on 13 Dec 2013 at 3:31
from mmseg4j.
谢谢,很严谨有效的回答
Original comment by [email protected]
on 13 Jan 2014 at 3:04
from mmseg4j.
能否请哪位把重新打包后的包上传上来,我这里因为种种原��
�,没法打包,多谢多谢
Original comment by [email protected]
on 13 Feb 2014 at 10:09
from mmseg4j.
请问你们在修改代码的时候,代码是从哪儿来的?!我没找��
�源代码在哪儿啊?!我也是遇见了上边这个问题。
Original comment by [email protected]
on 18 Feb 2014 at 8:44
from mmseg4j.
其實我也沒有重包,直接放棄 4.6 回去用 4.5 了 XD
Original comment by [email protected]
on 18 Feb 2014 at 10:34
from mmseg4j.
打个包放到maven上面把
Original comment by [email protected]
on 13 Mar 2014 at 11:39
from mmseg4j.
使用 2.0.0
参考 https://github.com/chenlb/mmseg4j-solr
Original comment by [email protected]
on 19 May 2014 at 11:24
- Changed state: Fixed
from mmseg4j.
Related Issues (20)
- 1.9+solr4.3报错 HOT 5
- mmseg1.9+4.3配置有问题 HOT 2
- 1.9.1在solr4.2.1加载不了。 HOT 2
- solr 4.4 上配置 mmseg4j-1.9.1 报错。 HOT 1
- solr4.3集成时出错 at org.apache.solr.core.SolrResourceLoader.reloadLuceneSPI HOT 1
- 能介绍一下在lucene下怎么配置吗? 还有在用1.9 的源码通过ant build时,提示找不到目标文件
- solr4.5+mmseg4j1.9.1 配置不对 HOT 2
- Maven主库中mmseg4j-core-1.9.1.jar 下载不了 HOT 2
- 特殊符号内的不分词 HOT 3
- solr4.9 mmseg4j1.9.1 reset()/close() call missing HOT 3
- 关于匹配的问题 HOT 2
- mmseg4j三种分词方式:Simple,Complex和maxword有什么区别? HOT 1
- solr4.3.1 + mmseg4j1.9.1 (分词不成功) HOT 2
- 如何支持中英文混合的分词? HOT 2
- Plugin init failure for [schema.xml] fieldType "textComplex": Plugin init failure for [schema.xml] analyzer/tokenizer: Error instantiating class: 'com.chenlb.mmseg4j.solr.MMSegTokenizerFactory' HOT 1
- solr4.2.2 加载不了mmseg4j-1.91 HOT 1
- 可以支持solr 4.10吗?
- 关于mmseg4j-solr-2.3.0
- 关于停用词、同义词词库配置
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mmseg4j.