mmseg4j 1.9.1 + Solr 4.7.0 报错
来源:互联网 发布:企业办公软件oa 编辑:程序博客网 时间:2024/05/18 03:35
TokenStream contract violation: reset()/close() call missing, reset() called multiple times, or subclass does not call super.reset(). Please see Javadocs of TokenStream class for more information about the correct consuming workflow.
解决办法:
http://lucene.apache.org/core/4_6_0/changes/Changes.html#v4.6.0.changes_in_backwards_compatibility_policyLUCENE-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.javapublic void reset() throws IOException {//lucene 4.0//org.apache.lucene.analysis.Tokenizer.setReader(Reader)//setReader 自动被调用, input 自动被设置。super.reset(); //加这一句mmSeg.reset(input);}可以自己下载工程修改后,放到mmseg4j-analysis-1.9.1.jar中自己的工程需要引入lucene-core-4.7.0.jar和mmseg4j-solr-1.9.1.jar和mmseg4j-core-1.9.1.jar
0 0
- mmseg4j 1.9.1 + Solr 4.7.0 报错
- solr与mmseg4j整合详细步骤(solr4.7.1和mmseg4j-1.9.1)
- solr-5.4.1 和 mmseg4j-2.3.0版本的配置
- solr学习(二)Solr4.7.2中整合中文分词mmseg4j-1.9.1
- solr+mmseg4j 中文分词
- solr中文分词(mmseg4j)
- solr+mmseg4j 中文分词
- solr+mmseg4j 中文分词
- solr中文分词(mmseg4j)
- Solr分词mmseg4j配置
- Jetty加载solr-5.1.0 并且添加mmseg4j分词器
- solr中文分词(mmseg4j) 编辑
- solr中mmseg4j基本配置
- solr安装mmseg4j 分词器
- Solr+MMSEG4J的简单学习
- solr中集成中文分词 mmseg4j
- solr中mmseg4j自定义词库配置
- solr下配置中文分词mmseg4j
- android开发和跨平台开发的对比
- Android抢先截获短信(源码分析)
- RedHat静态Ip地址配置
- Duilib设置水平、垂直布局推拉改变大小
- VS2010快捷键
- mmseg4j 1.9.1 + Solr 4.7.0 报错
- 一生等待,不如半世相拥
- Tomcat服务监控管理工具,利用delphi编写
- Android Binder机制的Native应用—双向通信
- 三年前,在经过你们村那块没有字的石碑时,
- 使用Geoprocessor 工具
- impdp\expdp原理
- 判断输入框中是否全为空格
- 安卓开发前