Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue Apr 7, 2016 · 2 comments

Comments

@GoogleCodeExporter
Copy link

出現這個錯誤?
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 [email protected] on 29 Mar 2013 at 9:49

@GoogleCodeExporter
Copy link
Author

solor.home的lib目录是默认的放第三方库的地方。

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

@GoogleCodeExporter
Copy link
Author

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

Original comment by [email protected] on 10 Jan 2014 at 10:14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant