I installed Solr (5.2.1) from here http://lucene.apache.org/solr/mirrors-solr-latest-redir.html.
I created a new filed type in the schema.xml sile:
<fieldType name="text_pl" class="solr.TextField" positionIncrementGap="100" autoGeneratePhraseQueries="true">
<analyzer type="index">
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.SynonymFilterFactory" synonyms="index_synonyms.txt" ignoreCase="true" expand="false"/>
<filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_pl.txt" />
<filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.MorfologikFilterFactory" dictionary="MORFOLOGIK" />
</analyzer>
<analyzer type="query">
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>
<filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_pl.txt" />
<filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.MorfologikFilterFactory" dictionary="MORFOLOGIK" />
</analyzer>
</fieldType>
But there is a problem when I'm loading this core:
org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Could not load conf for core new_core: Plugin init failure for [schema.xml] fieldType "text_pl": Plugin init failure for [schema.xml] analyzer/filter: Error instantiating class: 'org.apache.lucene.analysis.morfologik.MorfologikFilterFactory'.
I found this issue: https://issues.apache.org/jira/browse/SOLR-4007. I think it can be helpful, but I don't know how to update my Solr to fix this problem.
Any advice?
EDIT: Here https://issues.apache.org/jira/browse/SOLR-4007 is an information that fixed version is 4.1 [12321141]. But how can I install it?