stevendaniels / ik-analyzer

Automatically exported from code.google.com/p/ik-analyzer
0 stars 0 forks source link

请问兼容lucene4.3.1吗 #120

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
我用最新的源码打包成jar,但是还是报错Error creating bean with 
name 
'org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor
#0' defined in class path resource [applicationContext-dao.xml]: Initialization 
of bean failed; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'sessionFactory' defined in class path resource 
[applicationContext-dao.xml]: Invocation of init method failed; nested 
exception is java.lang.VerifyError: class 
org.hibernate.search.util.impl.DelegateNamedAnalyzer overrides final method 
tokenStream.(Ljava/lang/String;Ljava/io/Reader;)Lorg/apache/lucene/analysis/Toke
nStream;

Original issue reported on code.google.com by wxleida@gmail.com on 11 Jul 2013 at 5:40

GoogleCodeExporter commented 9 years ago
我也遇到这个问题了  IKAnalyzer好久没更新了啊

Original comment by zhaoyong...@gmail.com on 10 Sep 2013 at 3:56

GoogleCodeExporter commented 9 years ago
好像只能如此配置:
<fieldType name="text_ik" class="solr.TextField">
     <analyzer type="index" isMaxWordLength="false" class="org.wltea.analyzer.lucene.IKAnalyzer"/>
     <analyzer type="query" isMaxWordLength="true" class="org.wltea.analyzer.lucene.IKAnalyzer"/>

Original comment by xiezh...@gmail.com on 21 Nov 2013 at 8:35