linlin3344521 / ik-analyzer

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

org.apache.solr.common.SolrException: Plugin Initializing failure for [schema.xml] fieldType #113

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
出現這個錯誤?
org.apache.solr.common.SolrException: Plugin Initializing failure for 
[schema.xml] fieldType

我在schema.xml的配置是?
<fieldType name="text_general" class="solr.TextField" 
positionIncrementGap="100">
<analyzer type="index" class="org.wltea.analyzer.lucene.IKAnalyzer" 
useSmart="false"/>
<analyzer type="query" class="org.wltea.analyzer.lucene.IKAnalyzer" 
useSmart="true" />
</fieldType>

我是使用solr4.2的版本 + IK_Analyzer_2012FF_hf1
請問一下IK_Analyzer_2012FF_hf1.jar 這個檔案要放在哪裡呢?
有找到幾個放lib的地方。
是放在solr/example/solr-webapp/webapp/WEB-INF/lib 嗎?
還是應該放置在其他地方呢?
像是contrib/analysis-extras/lucene-libs ?

Original issue reported on code.google.com by asami1...@gmail.com on 29 Mar 2013 at 9:49

GoogleCodeExporter commented 9 years ago
solor.home的lib目录是默认的放第三方库的地方。

Original comment by kane.mx on 10 Apr 2013 at 9:04

GoogleCodeExporter commented 9 years ago
我这么写的话,错误是IKAnalyzer不支持positionIncrementGap的属性��
�入,去掉positionIncrementGap就行

Original comment by li.acerp...@gmail.com on 10 Jan 2014 at 10:14